datashee t product structure silicon monolithic integrated circuit radiation resistance design is not arranged 1/ 66 tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 14 ? 001 usb audio decoder lsi series aac /wma/mp3 + sd memory card + ipod bu9450 2c xxx series description bu9450 2c xxx series are wav/ aac /wma/mp3 decoder lsi which contains usb host , sd card i/f , audio dac , system controller , regulator for internal core power supply. features ? usb2.0 full speed host i/f function contained. ? sd card i/f function contained. ? i 2 c format i/f function contained. ? protocol conversion from i 2 c to usb hid or from usb hid to i 2 c. ? mp3 decode function contained. (available for mpeg1 , 2 and 2.5 , layer 1 , 2 and 3) ? wma decode function contained. (available for wma9 standard and not available for drm ) ? aac decode function contained. (available for mpeg4 aac - lc and not available for drm) ? wav format file playi ng function contained. ? sample rate converter contained. ? system controller contained. ? fat analysis function contained. ? folder pass table making function contained. ? id3tag and wmatag a nd aactag analysis. ? fast forward playing and fast backward playing function contained. ? resume function contained. ? reading a specified file data is possible from connected memory. ? lun is selectable. ? sound effect function contained. ? digital audio out function contained. (i 2 s , eiaj , s/pdif) ? audio dac contained. ? regulator for internal core power supply contained. applications audio products , etc package w(typ) x d(typ) x h(max) vqfn040v6060 6.00mm x 6.00mm x 1.00mm sqfp-t52 12 .00mm x 12 .00mm x 1.50mm line up part number package ordering part number bu94502cmuv vqfn040v6060 reel of 2000 bu94502cmuv- e2 bu94502c ks2 sqfp-t52 tray of 1000 bu94502c ks2 downloaded from: http:///
2/ 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 basic circuit application diagram -part 1 figure 1. an example of connection circuit application(bu9450 2c muv) this lsi builds in regulator for internal core power supply (1.5v). dvdd _m terminal of 10 pin connect to bypass condenser and dont connect to power supply (3.3v) please confirm the optimal oscillation circuit parameters applicable to your systems or products with the oscillator manufacturer in advance. vqfn040v6060 package exposes its frame of the backside of p ackage. note that this part is assumed to use after providing heat dissipation treatment to improve he at dissipation efficiency. try to occupy as wide as possible with heat dissipation pattern not only on the board su rface but also the backside. downloaded from: http:///
3/ 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 basic circuit application diagram -part2 figure 2. an example of connection circuit application(bu94502cks2) this lsi builds in regulator for internal core power supply (1.5v). dvdd _m terminal of 52 pin connect to bypass condenser and dont connect to power supply (3.3v) please confirm the optimal oscillation circuit parameters applicable to your systems or products with the oscillator manufacturer in advance. downloaded from: http:///
4/ 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 difference of bu9450 2c xxx series features item bu9450 2c muv bu94502c ks2 package vqfn040v6060 sqfp-t52 number of pins 40pin 52pin power supply 3. 3v (inner 1. 5v regulator ) 3. 3v (inner 1. 5v regulator ) usb host i/f usb full speed(12mbps) , usb mass storage class usb full speed(12mbps) , usb mass storage class sd card i/f spi mode sd , sdhc , mmc , mini-sdcard spi mode sd , sdhc , mc , mini-sdcard protocol conversion from i2c to usb hid or from usb hid to i2c supported supported i 2 c command i/f (slave) supported supported patch cord download supported supported change the setting of timeout and retry mode in usb memory or sd card mount operation supported supported audio line output supported supported digital audio output i 2 s , eiaj , spdif i 2 s , eiaj , spdif sample rate convertor supported supported clock 16 .9344mhz (note 1) 16 .9344mhz (note 1) playable mp3 files *. mp3 , *. mp2 , *. mp1 *. mp3 , *. mp2 , *. mp1 playable wma files *. asf , *. wma *. asf , *. wma playable aac files *. m4a , *. 3gp , *. mp4 *.m4a , *. 3gp , *. mp4 playable wav files *. wav *. wav downloaded from: http:///
5/ 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 block diagram figure 3. block diagram usb i/f sd i/f mp3/wma/ aac/wav decoder data buffer src i2s out spdif out tag analysis / browsing system controller command i/f serial (spi) data i/f usb/ system pll 1.5v ldo i2s out spidif out audio dac main control block mcu power amp 01:10 u s b /sd title 5. song_e artist artist a album album z user i/f file system (fat12 /16/32) 16.9344 mhz 3.3v downloaded from: http:///
6/ 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 arrangement of terminals bu94502cmuv figure 4. arrangement of terminals (bu9450 2c muv) bu94502c ks2 figure 5. arrangement of terminals (bu94502c ks2 ) xin_pll xout_pll tmode dvssio sd_con sd_do sd_clk dvddio dvssio dvdd_m test1 sda scl busy mchng irpto resetx sd_di sd_cs 24 23 22 21 20 19 18 17 16 15 14 13 1 2 3 4 5 6 7 8 9 10 1112 25 26 27 28 3433 32 31 35 36 37 38 30 29 4039 clk24mi mclk data bck lrck/spdif test4 usbdp usbdm avddc avssc rexti davss rdaco ldaco davdd amute dvddio test3 test2 vcdaco search bu94502cmuv vqfn040v6060 xin_pll xout_pll tmode dvssio sd_con sd_do sd_clk dvddio dvssio dvdd_m test1 sda scl busy mchng irpto resetx sd_di sd_cs 11 10 9 8 7 6 5 4 3 2 1 41 40 42 43 44 45 46 47 48 49 50 51 52 1213 3029 28 27 31 32 33 34 3635 clk24mi mclk data bck lrck/spdif test4 usbdp usbdm avddc avssc rexti davss rdaco ldaco davdd amute test3 test2 vcdaco search 14 17 16 15 18 21 20 19 22 23 26 25 24 37 38 39 n.c. n.c. n.c. dvddio n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. bu94502cks2 sqfp-t52 downloaded from: http:///
7/ 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 description of terminals -part1 bu94502cmuv no pin name io cir io pu function 1 dvssio gnd terminal 2 resetx a i pu (note 3) h : release reset , l : reset 3 tmode h i test mode terminal . connect it to gnd. 4 irpto b o connection interrupt output terminal 5 searc b o search flag output terminal 6 mchng b o file play end flag output terminal 7 busy b o command analysis busy output temrinal 8 scl i i (note 2) i 2 c slave clock input terminal 9 sda i i/o (note 2) i 2 c slave data i/o terminal 10 dvdd_m core power (vdd2) monitor terminal . connect it to bypass capacitor. 11 dvssio gnd terminal 12 dvddio io power (vdd1) terminal 13 test1 i test mode terminal . connect it to gnd. 14 xin_pll e i x'tal ( 16 .9344mhz) connection input terminal. 15 xout_pll e o x'tal ( 16 .9344mhz) connection output terminal. 16 test2 h i pu pull it up at vdd1 power. 17 test3 h i pu pull it up at vdd1 power. 18 test4 h i pu (note 1) (note 3) test mode terminal . connect it to gnd. 19 avddc usb power supply (vdd1) terminal 20 avssc usb gnd terminal 21 usb_ dm c i/o usb d i/o terminal 22 usb_ dp c i/o usb d + i/o terminal 23 rexti d o usb bias resistor ( 12k ) connecting terminal arrange the resistance of 12k near pin , and wiring on the pin side doesn't cross with other signal lines. 24 clk24mi b i/o pu (note 3) 24mhz clock input terminal at src through mode 25 lrck/spdif b o digital audio channel clock or spdif output terminal 26 bck b o digital audio bit clock output terminal 27 data b o digital audio data output terminal 28 mclk b o audio master clock ( 12 .288mhz/ 16 .9344mhz) output terminal 29 dvddio io power supply (vdd1) terminal 30 amute g o audio mute output terminal (h mute off , l mute on ) 31 davss audio dac gnd terminal 32 rdaco f o audio dac rch line output terminal 33 vc daco j o audio dac reference voltage output terminal 34 ldaco f o audio dac lch line output terminal 35 davdd b audio dac power supply (vdd1) terminal 36 sd _con b i pu (note 3) sd card connect terminal 37 sd _ do b i sd card data in terminal 38 sd _clk b o sd card clock terminal 39 sd _ di b o sd card data out terminal 40 sd _ cs b o sd card chip select terminal (note 1) pull-up turns off when l is input. (note 2) an external pull-up resistor is required because of open drai n io (note 3) pl ease input l level directly without resistance when you input l to the te rminal with pull-up ( about 33 k ) downloaded from: http:///
8/ 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 description of terminals -part2 bu94502c ks2 no pin name io cir io pu function 1 dvssio gnd terminal 2 dvddio io power (vdd1) terminal 3 test1 i test mode terminal . connect it to gnd. 4 xin_pll e i x'tal ( 16 .9344mhz) connection input terminal. 5 xout_pll e o x'tal ( 16 .9344mhz) connection output terminal. 6 n.c. non connection 7 n.c. non connection 8 test2 h i pu pull it up at vdd1 power. 9 test3 h i pu pull it up at vdd1 power. 10 test4 h i pu (note 1) (note 3) test mode terminal . connect it to gnd. 11 avddc usb power supply (vdd1) terminal 12 avssc usb gnd terminal 13 n.c. non connection 14 usb_ dm c i/o usb d i/o terminal 15 usb_ dp c i/o usb d + i/o terminal 16 rexti d o usb bias resistor ( 12k ) connecting terminal arrange the resistance of 12k near pin , and wiring on the pin side doesn't to cross with ot her signal lines. 17 clk24mi b i pu (note 3) 24mhz clock input terminal at src through mode 18 lrck/spdif b o digital audio channel clock or spdif output terminal 19 n.c. non connection 20 bck b o digital audio bit clock output terminal 21 da ta b o digital audio data output terminal 22 mclk b o audio master clock ( 12 .288mhz/ 16 .9344mhz) output terminal 23 n.c. non connection 24 n.c. non connection 25 dvddio io power supply (vdd1) terminal 26 amute g o audio mute out put terminal (h mute off , l mute on ) 27 davss audio dac gnd terminal 28 rdaco f o audio dac rch line output terminal 29 vcdaco j o audio dac reference voltage output terminal 30 ldaco f o audio dac lch line output terminal 31 davdd b a udio dac power supply (vdd1) terminal 32 n.c. non connection 33 n.c. non connection 34 sd _con b i pu (note 3) sd card connect terminal 35 sd _ do b i sd card data in terminal 36 sd _clk b o sd card clock terminal 37 sd _ di b o sd card data out terminal 38 sd _ cs b o sd card chip select terminal 39 n.c. non connection 40 dvssio gnd terminal 41 n.c. non connection 42 n.c. non connection 43 resetx a i pu (note 3) h : release reset , l : reset 44 tmode h i test mode terminal . connect it to gnd. 45 irpto b o connection interrupt output terminal 46 n.c. non connection 47 search b o search flag output terminal 48 mchng b o file play end flag output terminal 49 busy b o command analysis busy output terminal 50 scl i i (note 2) i 2 c slave clock input terminal 51 sda i i/o (note 2) i 2 c slave data i/o terminal 52 dvdd_m core power (vdd2) monitor terminal connect it to bypass capacitor. (note 1) pull-up turns off when l is input. (note 2) an external pull-up resistor is required because of open drai n io (note 3) please input l level directly without resistance when you input l to the terminal with pull-up ( about 33 k ) downloaded from: http:///
9/ 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 terminal equivalent circuit diagram a b c d e f g h davss davdd i j davss davdd dvddio dvssio dvddio d p d m 15k 15k avssc avssc avddc avddc avssc vdd_pll vdd_pll vss_pll vss_pll xout xin dvddio dvssio dvddio dvddio dvssio dvddio dvssio dvssio downloaded from: http:///
10 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 description of each blocks movement -part1 1. usb host interface ? builds in the usb full speed (12mbps) host control function. ? supports the usb mass storage class. ? converts the protocol from i 2 c to usb (hid) or vice versa during communications with the master microcomputer.* ? builds in isochronous transmission functions up to 192byte/frame . * ? builds in the interrupt in transfer function . * ? doesn t support external hub . ? doesn t support mtp. *these functions are available for a device having two or more configurations. 2. sd card interface ? supports the spi mode. ? supports sdhc memory cards. ? supports mmc , mini- sd and micro- sd cards. ? does not support cprm. 3. i 2 c command interface (slave i/f) ? communicates with the master microcomputer using the i 2 c interface format. ? operates as i 2 c slave i/f. ? supports the standard mode (100kbps) and the fast mode ( 400kbps). ? supports 7- bit addresses. 4. audio output ? supports audio line outputs from built- in 1bit-dac. ? builds in the digital soft mute function . * ? supports digital audio outputs of the i 2 s format , the eiaj format and those and the digital audio interface (spdif). ? builds in sound effects including pops , jazz , rock , classic , r&b and bass boost. * *this is available for audio line outputs only . 5. sample rate converter ? converts all su pport sample rates to 44 .1 khz based on the polyphase calculation. ? selection of sample rate converter on / off is possible by the command configuration. * supports only digital audio outputs of the i 2 s and eiaj format and ? when sample rate converter is used in off , enter the clock of 24 .576 mhz synchronizing with the clock of 16 .9344 mhz ( enter xin_pll terminal ) to the clk24mi terminal. 6. system controller ? control all operations including interface control to the master microcomputer , usb device access , sd card access , fat analysis , sort function , decoding , encoding and audio output. ? 7. fat analysis supports fat32 , fat16 and fat12 file sy stem. supports vfat (long file name). supports multi-partition up to 1 partition. supports multi-drive up to 1 drive. supports changeover of lun (logical unit number) and possible that test unit ready of other lun is confirmed during the playback. supports playable folder hierarchies up to 16 hierarchies whose full path including the file name is within 260 characters. supports playable file extension of *. wav for wav files. supports playable file extensions of *. m4a, *.3gp and *. mp4 for aac files. supports playable file extensions of *. asf and *. wma for wma files. supports playable file extensions of *. mp3, *.mp2 and *. mp1 for mp3 files . for *. mp2 and *. mp1 , the function allows you to select whether to play . does not extinguish between upper case letters and lower case letters of file extensions. up to 256 folders and 256 files can be sorted and played in the order of unicode when sorting functional effective. can obtain 5 file names ahead from current music file. can obtain a folder name or file name within 128 bytes. supports 512 , 1024 , 2048 and 4096 bytes per sector. playable file size up to 2g -1 byte. a file over 2gbyte is recognized as a playable file , too . but , it is for 2gbyte -1byte that it can play. supports the device size up to fat specification ( 2t byte). downloaded from: http:///
11 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 description of each blocks movement -part2 8. control from master microcomputer (little endian order) can control from the master microcomputer using the i 2 c interface . controllable using commands of play , pause , stop , tune skip , tune forward , folder move , device change , volume setting , repeat change , random play , digital audio output setting , sound effect setting and etc . can read information on internal status during play or stop , folder number , file number within the folder , play time , total number of folders , total number of files , name of folder being played , name of file being played and tag (title , artist , album , genre) , and etc. 9. mp3 decoder ? supports mpeg audio 1 , 2 and 2.5. ? supports layer1 , 2 and 3. ? supports sample rate of 8 k , 16 k , 32 k , 11 .025 k , 22 . 05 k , 44 .1 k , 12 k , 24 k and 48 khz. ? supports bit rate of 8 to 320 kbps and vbr (variable bit rate) . * excluding the free format ? supports id3tag v1 .0 , v.1 , 1 , v2 .2 , v2 .3 and v2 .4. ( up to 128 bytes can obtain for album , artist , title and genre , respectively.) 10 . wma decoder ? supports windows media audio 9 standard. ? not supports drm files. ? supports sample rate of 8 k , 16 k , 32 k , 11 .0 25 k , 22 . 05 k , 44 .1 k and 48 khz. ? supports bit rate of 5 to 384 kbps and vbr (variable bit rate). ? supports wma-tag. ? ( up to 128 bytes can obtain for album , artist , title and genre , respectively.) 11 . aac decoder ? supports mpeg4 aac - lc (audio stream). ? based on 3gpp ts 26 . 244 and itunes. ? supports file type of m4a , mp4 and 3gpx . (x stands for any numeric value.) ? not supports drm files. ? supports sample rate of 8 k , 16 k , 32 k , 11 .025 k , 22 . 05 k , 44 .1 k , 12 k , 24 k and 48 khz. ? supports bit rate of 8 to 320kbps an d vbr (variable bit rate). ? supports aactag (itunes meta-data and 3gp meta-data). ( up to 128 bytes can obtain for album , artist , title and genre , respectively.) *for files other than those encoded by itunes , sound interruption may occur when skipping or forwarding to the next tune if streams such as gaps and video data are contained in the file. 12 . wav play ? supports wav format. ? supports sample rate of 8 k , 16 k , 32 k , 11 .025 k , 22 . 05 k , 44 .1 k , 12 k , 24 k and 48 khz. ? supports 16 - bit pcm data. ? supports riff tag. ( up to 128 bytes can obtain for album , artist , title and genre , respectively.) 13. repeat and random play ? supports repeat within the memory , repeat within folder and repeat with single tune. ? supports random play in the whole memory or the playing fol der. ? can select auto-play of next music or stop playing at the end of current music playing. 14. read from files within memory ? can read the data from specified file stored in the specified folder within the memory . downloaded from: http:///
12 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 absolute maximum ratings (ta = 25 ) parameter symbol limits unit comment supply voltage(analog , i/o) vdd1max -0.3 to 4.5 v dvddio , davdd , avddc input voltage vin -0.3 to vdd1 + 0.3 v storage temperature range tstg - 55 to 125 c operating temperature range topr - 40 to 85 c vqfn040v6060 package power dissipation (note 1) pd1 8 00 mw bu94502cmuv sqfp-t52 package power dissipation (note 1) pd2 8 50 mw bu94502c ks2 (note 1) 74.2mm 74.2mm 1.6mm, fr4, 1-layer glass epoxy board (copper ar ea 23.69mm2) in the case of use at ta=25 or more, 8mw should be reduced per 1 . (note 2) in the case of use at ta=25 or more, 8.5mw should be reduced per 1 . operating conditions (ta = 25 ) parameter symbol limits unit comment supply voltage(analog , i/o) vdd1 3.0 to 3.6 v dvddio , davdd , avddc electrical characteristics (unless specified , ta = 25 vdd1=3. 3v , dvss=avssc= vss _pll=davss= 0v , xin_pll= 16 .9344mhz) parameter symbol limits unit condition min. typ. max. circuit current (vdd1 usb1) idd1usb1 - 51 .0 75 .0 ma when usb memory is played. (note 1) circuit current (vdd1 sd1) idd1sd1 - 26 .0 45 .0 ma when sd card is played. (note 1) h-level input voltage vih vdd1*0.7 vdd1 v (note 2) l-level input voltage v il dvss vdd1*0.3 v (note 2) h-level output voltage1 voh1 vdd1-0.4 vdd1 v ioh=-1.6ma (note 3) l-level output voltage1 vol1 0 0.4 v iol=1.6ma (note 3) l-level output voltage2 vol2 0 0.4 v iol=3.6ma (note 4) h-level output voltage3 voh3 vdd1-0.4 vd d1 v ioh=-0.6ma (note 5) l-level output voltage3 vol3 0 0.4 v iol=0.6ma (note 5) h-level output voltage4 voh4 vdd1-1.0 vdd1 v ioh=-1.6ma (note 6) l-level output voltage4 vol4 0 1.0 v iol=1.6ma (note 6) h-level input voltage vihusb vdd1*0.6 vdd1 v (note 7) l-level input voltage vilusb avssc vdd1*0.3 v (note 7) output impedance(h) zoh 22 .0 45 .0 60 .0 (note 7) output impedance(l) zol 22 .0 45 .0 60 .0 (note 7) h-level output voltage vohusb vdd1-0.5 vdd1 v (note 7) l-level output voltage volusb 0 0.3 v (note 7) rise/fall time tr / tf 11 ns output capacity 50pf (note 7) voltage of crossing point vcrs vdd1/2 v output capacity 50pf (note 7) range of differential input vdiff 0.8 2.5 v (note 7) differential input sensitivity vsens 0.2 v (note 7) pull-down resistance rpd 14 . 25 20 .0 24 .8 k (note 7) distortion rate thd 0. 005 0. 05 % 1khz , 0db , sine , (note 8) dynamic range dr 90 db 1khz , - 60db , sine , (note 8) s/n ratio s/n 66 96 db 1khz , 0db , a-weight ed , (note 8) max output level vsmax 0. 60 0. 75 vrms 1khz , 0db , sine , (note 8) bu94502cmuv (note 1) 3.3v system i/o, analog power supply(vdd1), 1khz, 0db, sine-wave playing (note 2) 2, 3, 7-9, 13, 14, 16-18, 24, 36, 37 pin (note 3) 4-7, 24-28, 30 pin (note 4) 9 pin (note 5) 38 -40 pin (note 6) 15 pin (note 7) 21, 22 pin (note 8) 32, 34 pin output no-load bu94502cks2 (note 1) 3.3v system i/o, analog power supply(vdd1), 1khz, 0db, sine-wave playing (note 2) 3, 4, 8-10, 17, 34, 35, 43, 44, 49-51 pin (note 3) 45,47-49,17,18,20-22,26 pin (note 4) 51 pin (note 5) 36 -38 pin (note 6) 5 pin (note 7) 14, 15 pin (note 8) 28, 30 pin output no-load downloaded from: http:///
13 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 application information 1 . clock and reset clock clock name i/o function remarks xin_pll i x'tal ( 16 .9344mhz) connection input terminal - xout_pll o x'tal (16.9344mhz) connection terminal - reset signal name i/o function remarks resetx i system reset input terminal - please release the reset signal continue l input for more than 100 us after clock input from the oscillation i/o terminal becomes st able . (see figure 6.) figure 6. reset timing item code rating unit remarks min typ max clock frequency f clk 16 .9302 16 .9344 16 .9386 mhz - reset l interval t rstx 100 - - us - 2 . usb i/f usb i/o interface signal name i/o functi on remarks usb_ dp i/o usb d + i/o terminal - usb_ dm i/o usb d- i/o terminal - rexti o usb bias resistor connection terminal connect a resistor of 12 k 1 % to gnd . this interface communicates with the usb device using usb_ dp and usb_ dm differential signals. rexti terminal is used to connect to the bias resistor in the usb-phy block. waiting time for oscillation stabilization f clk trstx power supply xin_pll resetx downloaded from: http:///
14 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 3 . sd i/f sd memory card spi interface signal name i/o function remarks sd _ cs o sd chip select - sd _clk o spi clock - sd _ di o spi data input - sd _ do i spi dat a output - sd _con i sd card connect detection terminal h : do not detect sd card connect , l : detect sd card connect this interface connects to the sd memory card slot to communicate with the sd memory device. supports the spi mode. supports sd , sdhc memory cards and mmc , mini- sd and micro- sd cards. does not supports cprm. since the sd memory card slot needs to detect the insertion status of the sd memory device , be sure to use the slot having the sd memory card insertion status detection terminal . the sd _con terminal is pulled up within the device and detects sd card connect when l is input. the sd _con terminal is pulled up within the device and detects sd card connect when l is input. 3.1 timing (unless specified , ta = 25 , vdd1=3. 3v , load=20pf, 10k ) item symbol rating unit remarks min typ max sd _ cs setup time tcss - 5 - us sd _ cs hold time tcsh - 15 - us sd _clk clock frequency tclk - 13 .5 - mhz sd _ di output delay tod - 20 - 20 ns sd _ do data in setup time tds 18 - - ns sd _ do data in hold time tdh 5 - - ns output high voltage voh 0. 625 *vdd1 - - v output low voltage vol - - 0. 25 *vdd1 v tod tcss msb msb sd_do sd_di sd_clk tds tdh tcsh tclk vol voh sd_cs figure 7 . spi i/f timing downloaded from: http:///
15 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 4 . audio line output audio line output signal name i/o function remarks ldaco o lch audio line output - rdaco o rch audio line output - this is a line output of decoded music data. when a sample rate converter is used in on , data on the sample rate 48khz , 32khz are changed into 44 .1khz and outputted . it tu rns on when line output is selected by a command. figure 8. shows the relationship between audio outputs and volume steps. the initial value is C 24 .1db at power on . figure 8. volume step function -60 -50 -40 -30 -20 -10 0 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 volume step up initial value : -24.1db audio output (db) downloaded from: http:///
16 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 5 . equalizers selectable audio line output from 5 types of equalizers and 2 types of bus boosts , using commands. you can use a combination of an equalizer and bus boost 1. even when line output is not selected , the equalizer setting is valid. however , for digital output , the equalizer cannot ch ange the sound quality. figure 9 . - figure 14.show frequency characteristics of each filter. clipping may occur by the combination of volume and equalizer setting. figure 9 . pops frequency characteristics figure 10 . jazz frequency characteristics pops -10 -5 0 5 10 15 20 10 100 1000 10000 100000 freq.(hz) mag.(db) pops(0x52, 0x01) pops+bassboost1(0x52, 0x09) jazz -10 -5 0 5 10 15 20 10 100 1000 10000 100000 freq.(hz) mag.(db) jazz(0x52, 0x02) jazz+bassboost1(0x52, 0x0a) downloaded from: http:///
17 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 figure 11 . rock frequency characteristics figure 12 . classic frequency characteristics rock -10 -5 0 5 10 15 20 10 100 1000 10000 100000 freq.(hz) mag.(db) rock(0x52, 0x03) rock+bassboost1(0x52, 0x0b) classic -10 -5 0 5 10 15 20 10 100 1000 10000 100000 freq.(hz) mag.(db) classic(0x52, 0x04) classic+bassboost1(0x52, 0x0c) downloaded from: http:///
18 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 figure 13 . r&b figure 14 . bass boost r&b -10 -5 0 5 10 15 20 10 100 1000 10000 100000 freq.(hz) mag.(db) r&b(0x52, 0x05) r&b+bassboost1(0x52, 0x0d) bassboost -10 -5 0 5 10 15 20 10 100 1000 10000 100000 freq.(hz) mag.(db) bassboost1(0x52, 0x08) bassboost2(0x52, 0x0f) downloaded from: http:///
19 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 6 . mute control output audio mute signal name i/o function remarks amute o audio mute control terminal h : at audio output , l : at mute it outputs h at audio output and l at mute. when power is on or in the silence mode such as ff or fb , this control terminal is used to mute audio output it can be used for the flag to do mute with the amplifier of the rear step and so on . figure 15. shows the operation waveforms. figure 15 . waveform at audio mute 7. digital audio output (i 2 s , eiaj) the analog audio system line output by the built-in dac and the change of the digital audio output signal are pos sible by a comm and. audio outputs are shown in table 1 . audio output . because test terminal is an output terminal , use it as open. table 1 . audio output pin analog output mode digtal output mode spdif off spdif on rdaco line out rch hiz hiz ldaco line out lch hi z hiz lrck test terminal lr clock spdif bck test terminal bit clock test terminal data test terminal lr data test terminal mclk test terminal master clock test terminal digital audio interface (i 2 s , eiaj) signal name i/o function remarks lrck o lr clock output ( fs = 44 .1khz) - bck o bit clock output - data o data output - mclk o masterxlock output at fs =32khz 12 .288mhz (384fs) at fs = 44 .1khz 16 .9344mhz (384fs) at fs =48khz 12 .288mhz (256fs) this is a digital audio output interface terminal . it becomes enabled by using the appropriate command. when serial audio output is selected , t he output format can be selected from the eiaj format or i 2 s format of 32fs , 48fs or 64fs . selectable with the mode that the sample rate of the playback tune is ou tputted and the mo de fixed on 44 .1 khz by sample rate converter. figure 16 . - figure 21. show the output formats. ldaco, rdaco amute at start of play at stop of play 23 ms at 0 db 23 ms at 0 db downloaded from: http:///
20 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 figure 16 . i 2 s output timing (32fs) figure 17 . i 2 s output timing (48fs) figure 18 . i 2 s output timing (64fs) figure 19. eiaj output timing (32fs) figure 20 . eiaj output timing (48fs) figure 21 . eiaj output timing (64fs) lrck left channel right channel bck(48fs) data 15 14 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 13 13 12 15 14 11 8 7 10 9 6 3 2 5 4 1 0 13 12 15 14 lrck bck(64fs) data left channel right channel 14 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 lrck bck(32fs) data left channel 15 right channel lrck left channel right channel bck(48fs) data 15 14 12 11 10 9 8 7 6 5 4 3 2 1 0 1 0 13 13 12 15 14 11 8 7 10 9 6 3 2 5 4 1 0 1 0 2 lrck bck(64fs) data left channel right channel 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 1 0 lrck bck(32fs) data left channel 15 right channel downloaded from: http:///
21 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 7.1 i 2 s , eiaj output timing 48fs i 2 s format(unless specified , ta = 25 , vdd1=3. 3v , load=20pf) item symbol rating unit remarks m in typ max bck clock frequency tbck - 472 .4 - ns bck low time tbck1 216 236 - ns bck high time tbck2 216 236 - ns lrck clock frequency tlrck - 44 .1 - k hz lrck output delay tlrck1 - 20 0 20 ns data output delay td a1 - 20 0 20 ns output high voltage toh vdd1-0.4 - - v output low voltage vol - - 0.4 v tlrck1 msb data bck left channel tbck1 vol lrck tbck2 voh vol tda1 vol figure 22 . i 2 s , eiaj output timing downloaded from: http:///
22 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 8. digital audio output (spdif) digital audio interface signal name i/o function remarks spdif o spdif output - sp dif output become enabled by setting it using the appropriate command. figure 23 . shows the digital audio signal output format. figure 23. spdif output format one sub frame of spdif consists of synchronous preambles , 16 - bit audio data , v bit (validity f lag ) , u bit (user data) , c bit (channel status) and p bit (parity bit ). output rate is fixed to 1x speed. spdif outputs synchronous preambles (source code 0-3) as they are , and other elements (source code 4- 31 ) as the biphase output. while the operation stops , l output is enabled. synchronous preambles and c bit use 32 frames ( 4.4 ms ) for one cycle. the data formats are shown in tables.2 and 3 v bit is fixed to l . u bit uses 98 frames ( 13 .3 ms ) for one cycle synchronous preamble all 0 audio data(16bit) lsb msb v u c p 0 3 4 1112 27 28 29 30 31 source code synchronous preamble (b pattern) (m pattern) (w pattern) source code(4-31) 0 0 0 0 0 0 0 0 1 0 1 1 0 1 spdif output synchronous preamble downloaded from: http:///
23 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 table 2 . synchronous preamble pattern l0 r0 l1 r1 l2 r2 l3 r3 l4 r4 l5 r5 0 b w m w m w m w m w m w 1 m w m w m w m w m w m w 31 m w m w m w m w m w m w table 3 . c bit format l0 r0 l1 r1 l2 r2 l3 r3 l4 r4 l5 r5 0 0 0 copy 0 0 0 1 0 0 1 0 0 0 2 0 0 0 lbit 0 0 3 0 0 1 0 0 1 0 0 4 0 0 0 0 0 0 5 0 0 0 0 0 0 31 0 0 0 0 0 0 table 4 . u bit format l0 r0 l1 r1 l2 r2 l3 r3 l4 r4 l5 r5 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 0 0 0 0 3 1 0 0 0 0 0 0 0 0 0 0 0 97 1 0 0 0 0 0 0 0 0 0 0 0 p bit is set to 1 if the number of 1 contained in source codes 4- 30 is odd , and set to 0 if the number is even. therefore , the number of source codes to be set to 1 for one data must be even , spdif ends with l output , and preamble output always starts in the same direction. downloaded from: http:///
24 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 8.1 spdif output timing (unless specified , ta = 25 , vdd1=3. 3v , load=20pf) item symbol rating unit remarks min typ max spdif clock frequency tck - 2. 82 2 - mhz spdif clock high time tck1 15 7 177 - ns spdif clock low time tck2 15 7 177 - ns output high voltage voh vdd1-0.4 - - v output low voltage vol - - 0.4 v spdif tck1 tck2 voh vol vol tck figure 24 . spdif output timing downloaded from: http:///
25 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 9 . i 2 c command int erface slave i 2 c serial interface signal name i/o function remarks scl i i 2 c interface clock input external pull- up resistor is required. sda i/o i 2 c interface data i/o external pull- up resistor is required. this is an i 2 c serial interface terminal to communicate with the microcomputer (master). it supports slave i 2 c operations. 9.1 i 2 c protocol when the i2c bus is in the idle state , sda and scl are set to h by the external pull- up resistor. to start communications , the master sets sda to l while scl set to h (start condition) . to finish communications , the master sets sda to h while scl set to h (stop condition) . during transfer , the master changes sda only while scl is l . figure 25. shows start condition and stop condition of i 2 c. figure 25. i 2 c start and stop conditions 9.2 slave address i 2 c bus slave addresses support the 7-bit addressing mode. figure 26 . shows the slave address transfer format. figure 26 . slave address transfer format table 5. settable slave addresses ms b a5 a4 a3 a2 a1 lsb a0 1 0 0 0 0 1 1 9.3 protocol to write from the master when sending commands from the master using the i 2 c bus , be sure to conform to the transfer protocol shown in figure 27. figure 27 . command send protocol s a6 a5 a4 a3 a2 a1 a0 r/w ack start condition slave address sent by slave r / w = read / write pulse ack = acknowledge s slave address a data(8bit) r/w a data(8bit) a data(8bit) p a/a from master to slave from slave to master "0"(write) a = acknowledge(sda low) a = no acknowledge(sda high) s = start condition p = stop condition msb 1 2 8 lsb ack 9 1 ack 9 sda scl start condition stop condition downloaded from: http:///
26 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 9.4 protocol to read to the master when sending the received data from the slave to the master using the i 2 c bus , be sure to conform to the transfer protocol shown in figure 28 . first , transfer the status read command (step1). then , input scl clock of required bytes in step2 to read the status. if the device status is busy when receiving the device status or the data within the memory , the i 2 c bus may be occupied by the device in busy. this lsi transfers the data to the master to avoid such occupation of the bus. however , as the busy status still exists internally , the proper data may not be transferred in busy. to cope with this situation , the first byte of the transfer data (step2) is used to judge whether the transferred data is valid or invalid. after addressing from the master to the slave , if the 0 bit of the first byte of the transfer data immediately after requiring the data transfer is 0 , the data transferred from the slave is valid. if the 0 bit of the first byte is 1 , it shows the busy status. thus , judge all the transferred data to be invalid. if this happens , retry step1 to send commands to read the status. the first byte of the transferred data (step2) can be readable as the busy byte. please read the status after sending the status read command (step1). in addition , internal statuses other than busy shown in table 6. can be read . the first byte of the transferred data (step2) can be readable as the busy byte . please read the status after sending the status read command (step1). in addition , internal statuses other than busy shown in table.7 can be read . figure 29 . shows the relationship between the transferred data and busy. table 6. busy byte structure figure 28 . status reception protocol figure 29 . relationship between transferred data and busy bit status 7 0 6 0 5 0 4 precom 3 irpto 2 search 1 mchng 0 busy s slave address a data(8bit) r/w a data(8bit) p a/a from master to slave from slave to master "0"(write) a = acknowledge(sda low) a = no acknowledge(sda high) s = start condition p = stop condition step1 s slave address a busy(8bit) r/w a data(8bit) p a "1"(read) step2 data(8bit) a step1 command s slave address a busy[0]=1 a data(8bit) p a data(8bit) a r step1 command s slave address a 0x00 a data(8bit) p a data(8bit) a r busy byte busy byte for status busy i2c downloaded from: http:///
27 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 9.5 i 2 c bus line timing table 7. i 2 c bus line timing sda and scl bus-line characteristic (unless specified , ta = 25 , vcc=3. 3v ) parameter code min. max. unit 1 sda , scl h input voltage vih vdd*0.7 vdd v 2 sda , scl l input voltage vil dvss vdd*0.3 v 3 sda h output voltage voh vdd-0.4 vdd v 4 sda l output voltage vol 0 0.4 v 5 scl clock frequency fscl 0 400 khz 6 bus-free-time between "stop " condition and "start" condition tbuf 1.3 s 7 hold time for "start " condition after this , the first clock pulse is generated. thd;sta 0.6 s 8 low status hold-time of scl clock tlow 1.3 s 9 high status hold-time of scl clock thigh 0.6 s 10 data-hold-time thd;dat 0 s 11 date-set up -time tsu;dat 100 ns 12 rising time of sda and scl signal tr 20 +0.1* cb 300 ns 13 fall time of sda and scl signal tf 20 +0.1* cb 300 ns 14 setup time of "stop " condition tsu;sto 0.6 s 15 capacitive load of each bus-line cb 400 pf the above-mentioned numerical values are all the valu es corresponding to v ih min and v il max level. * to exceed an undefined area on falling edged of scl , transmission device should internally offer the hold- time of 300ns or more for sda signal (v ih min of scl signal). because the "repeated start " condition to send "start " condition without sending "stop " condition doesn't correspond , after sending "start " condition , always send "stop " condition. neither terminal scl nor terminal sda correspond to 5v tolerant. figure 30 . i 2 c bus line timing chart t buf t low t r t hd;sta s p t hd;dat t f t high t su;dat t su;sto p sda scl downloaded from: http:///
28 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 10 . interrupt signals to microprocessor 10 .1 busy busy status detection output signal name i/o function remarks busy o busy status detection output signal h : busy , l : not busy this is output to indicate that the lsi is in the busy status. a busy signal outputs h until analyzing a command from the master and starting the command operation. the command input to this lsi in busy stat us is unacceptable . connect it to the pio port of the microcomputer. 10 .2 mchng tune number change detection output signal name i/o function remarks mchng o tune number change detection output signal h : during playing , l : at the end or stop of tune this signal outputs the information which tells that the file within the memory is being played or the file to be played is changed. precisely , the signal outputs h during the internal decode sequence operation , and l at stop of the operation. connect it to the interruption port of the microcomputer. 10 .3 search search status detection output signal name i/o function remarks search o search status detection output signal h : search , l : not search this is output to indicate that the lsi is in the search status. a search signal becomes h at the time of memory mount , file search , tag analysis and toc analysis. this signal is or of the 2-bit search status. the lsi ignores command input during search. however , it can accept only abort , stop and status read commands even during search and can execute them command. connect it to the pio port of the microcomputer. 10 .4 irpto interrupt output to microcomputer signal name i/o function remarks irpto o interrupt output to microcomputer h : interrupt , l : not interrupt this is output to indicate that the lsi is now requiring interruption to the microcomputer. change from l to h shows that an interruption has occurred . when signage is h , it is shown that interrupt occurs. connect it to the interruption port of the microcomputer. downloaded from: http:///
29 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 11 . file search 11 .1 function - the file search function supports file system of fat32 , fat16 and fat12 . (ntfs is not supported.) - the number of maximum playable files per folder follows the specification of fat. table 8 . maximum playable files per fold er root folder sub folder fat12 512 1024 fat16 512 1024 fat32 65535 1024 the number of the maximum files which can playback in throu ghout the memory is 65535. the number of the maximum folders which can playback in th roughout the memory is 512. (include root folder) the file or folder beyond the maximum number cannot playba ck. because the pass table of the folder is made to built-in memory beforehand, the search time for next music file is shortened. less than 256 files in the order of fat within each folder are sorted according to unicode. more than 256 files , if any , will be sorted in the fat order. the same rule is applied when sorting sub-folders . more than 100 sub-folders , if any , will be sorted in the fat order . sorting function can be selected valid or invalid with a command. the folder hierarchies up to 16 hierarchies whose full path including the file name is within 260 characters can be searched . 11 .2 playable file the playable file extension is *. wav for the wav file, *.m4a, *.3gp and *. mp4 for the aac file, *. asf and *. wma for the wma file, and *. mp3, *.mp2 and *. mp1 for the mp3 file. (there is no distinction between upper case letters and lower case letters.) note that the file operation differs in the following cases ? codec selection command : for details , please see set _mp3 / set _wma / set _ aac / set _wav / set _mp3_play command specifications. ? attribute: files with hidden attributes are also playable . files with system attributes cannot be played. ? file name: the file name , including its size , does not depend on playability. ? file size: a file with file size "0 " is not recognized as a playable file . 11 .3 file playing sequence the file playing sequence depends on the following rules when sort function valid . see figure 28 . [1] files of 1 to 256 , in the order written to fat (fat order) in each folder , are sorted in the order of unicode . files more than 256 are played in the fat order. the same rule is applied when sorting sub-folders. all the folders including null ones and those to which no playable file is written are sorted (selectable setting by command). if over 256 playable files or sub-folders are contained in the folder , they are played in the order written to the fat directory entries. the writing method of directory entries will not help understand the file play order because the metho d depends on the os operation at writing. [2] when a playable file exists in the root folder (the top hierarchy) , the file is to be played first. [3] after all the playable files within the root folder ha ve been played , playable files in the folder in the lower hierarchy , if any , are played. [4] if another folder exists in the lower hierarchy , playable files within this folder are played. if not , the lsi searches other folders in the same hierarchy. if another folder exists there , the lsi plays that folder. [5] after playing all the files (max 1024 files) , the lsi returns to the root folder as in [2 ] and play the files starting with the top sorted on e. downloaded from: http:///
30 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 11 .4 folder/file sort the lsi sorts the sub-folders and files in the following sequence: [1] obtain up to 256 sub-folders and files each in the order written to fat within selected folder . [2] compare the obtained folder/file names for 8 charac ters ( 16 bytes) from the beginning in unicode (2-byte character) and sort them in the ascending order. * [3] if there are files/folders with same character strings : follow the order of mp3 , wma , aac and wav when the extension is different ; and , otherwise , follow the order written to fat. [4] 101 or more files or sub-folders follow the order written to fat. * the processing of the file name and the folder name is shown in the following. 1) when a lfn (long file name) entry exists , 2 bytes are treated as one character . 2) when no lfn entry exists , the sfn(short file name) entry is processed as follows . 2-a) when the first appeared character code is within the range of 0x00-0x7f ( us -ascii) , the lsi treats one byte as one character , and adds '0x00 ' to the upper of the character to expand the entire character to an unicode. 2-b) for a case other than 2-a) , practically , the lsi treats these 2 bytes as one character. *for details on lfn and sfn , see the fat file system specifications . [root folder] a.mp3 b.m p3 c.mp3 a_folder d.mp3 e.mp3 f.mp3 g.mp3 h.mp3 b_foder i.mp3 j.mp3 c_folder k.mp3 l.mp3 m.mp3 n.mp3 o. doc p.xls q.mp3 d_folder r.txt s.txt t.txt e_folder u.mp3 v.mp3 w.mp3 x.mp3 y.mp3 z.mp3 ? figure 31 . example of folder/file structure within the memory device downloaded from: http:///
31 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 table 9 . file play sequence for folder/file structure in figure 28 . playing sequence file to be played remarks 1 a.mp3 -the lsi first starts playing the playable files in the root folder , if any . -the files are played in the ascending order of unicode given to each file name. 2 b.mp3 3 c.mp3 4 d.mp3 -after playing all the playable files in the root folder , the lsi searches folders in the lower hierarchy. -the folders are searched in the ascending order of unicode given to each folder name. 5 e.mp3 6 f.mp3 7 g.mp3 8 h.mp3 9 i.mp3 10 j.mp3 11 k.mp3 12 l.mp3 13 m.mp3 14 n.mp3 15 q.mp3 -unplayable files are ignored. 16 u.mp3 -after playing all the playable files (max 1024 files) including those in a_folder and in its lower hierarchy , the lsi moves to the hierarchy in which a folder exists and searches files . - in this case , since no playable file exists in d folder , which is in the same hierarchy of a_folder , the lsi plays the playable files in e folder in the further lower hierarchy . 17 v.mp3 18 w.mp3 19 x.mp3 20 y.mp3 21 z.mp3 11 .5 search within multi-drive and multi-partition if a device is a multi-drive type or multi partition type , the lsi can recognize the drive by selecting lun (logical unit number) for the supporting fat. if pa rt icular lun isn t selected , the lsi mounts the devi ce whose lun detected first . (default) it is possible that test unit ready of other luns is confirmed during the playback. 11 .6 external hub search when the usb connector is connected to a hub , and a fat-supported drive is connected ahead of the hub at mounting the usb for this lsi , only one drive is recognized . the lsi does not support external hubs , it cannot detect plugging/unplugging of the drive ahead of the hub after the usb is mounted. downloaded from: http:///
32 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 12 . playing files 12 .1 function for the files judged to be playable through the file search function , the lsi automatically switches the decoder using the file extension and decodes these files . fast forward play and rewinding play operations are available . also , repeat play and random play are available . 12 .2 playable file formats 12 .2.1 mp3 file format this format supports mpeg audio 1 , 2 , 2.5 and layer 1 , 2 , 3. it supports sample rates of 8 khz , 16 khz , 32 khz , 11 .025 khz , 22 . 05 khz , 44 .1 khz , 12 khz , 24 khz and 48khz . it supports bit rates of 8 to 320kb ps and vbr (variable bit rate) . 12 .2.2 wma file format this format supports wma ver.9 standard. it supports sample rates of 8 khz , 16 khz , 32 khz , 11 .025 khz , 22 . 05 khz , 44 .1 khz and 48 khz . it supports bit rates of 5 to 384kbps and vbr (variable bit rate) . it does not support drm . it supports asf files including audio streams only. 12 .2.3 aac file format this format supports mpeg4 aac - lc . it conforms to itunes and 3gpp ts 26 . 244 . it supports file types of m4a , mp42 and 3gpx . (x is an arbitrary nu meric value.) itunes is validated in the following versions : 4.*, 5.*, 6.* and 7.0-7.5. it supports sample rates of 8 khz , 16 khz , 32 khz , 11 . 025 khz , 22 . 05 khz , 44 .1 khz , 12 khz , 24 khz and 48 khz . it supports bit rates of 8 to 320kbps and vbr (variable bit rate) . it does not support drm . 12 .2.4 wav file format this format supports riff wave. it supports sample rates of 8 khz , 16 khz , 32 khz , 11 .025 khz , 22 . 05 khz , 44 .1 khz , 12 khz , 24 khz and 48k hz . if you try to play a file created in any format other than above , the lsi immediately terminates decoding it . 12 .3 playing files having damaged data if the data section of the mp3 file is damaged , the lsi plays the music data in the possible range instead of ceasing to play the entire file. it mutes t he unplayable section. however , amute terminal remains h output . if the data section of the wav file is damaged , noises are output . the lsi executes other files within the playable range and stops playing . then , it searches to the next tune . if a part of the data header is damaged , the lsi immediately terminates playing and searches to the next tune . the movement after the next tune search depends on the se tting of the "set_next_mode_on_err" command. if the file s extension is playable but it s file s data does not have a format supporting to the extension , the lsi immediately terminates playing and searches to the next tune . if the file does not have a file format , the lsi immediately terminates playing and searches to the next tune . however , when the file data is structured in a format other than mp3 and its file extension is *. mp3, *.mp2 or *. mp1 , the lsi plays it in the silence mode basically. however , if the lsi can read any playable data , it plays the file partially . in this case , the time information which is output as the serial status also becomes unstable . the time information is then partially output but you cannot obtain the correct information. downloaded from: http:///
33 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 12 .4 next playing mode and repeat playing mode you can select the operation as shown below depending on the next playing mode , repeat mode and random mode. next playing mode [1] play_next: automatically searches the next tune after th e tune being played ends and starts playing the next tune . [2] play_all_stop: after the last tune being played within the memory ends , stops upon completion of search for the next tune . starts playing the next tune by the play command issued subsequently. [3] play_fol_stop: after the last tune being played within th e folder ends , stops upon completion of search for the next tune . starts playing the next tune by the play command issued subsequently. [4] play_tun_stop: after the tune being played ends , stops upon completion of search for the next tune . starts playing the next tune by the play comma nd issued subsequently. repeat mode repeat_all: after playing all the tunes within the memory in process , starts playing them from the beginning of the memory . repeat_fol: repeats playing tunes within the folder in process . repeat_tun: repeats pl aying the tune in process . the operation at the time of ff and fb command reception follows a setup of a set _reprand command. random_all: playback randomly selected from all tunes in the memory. random_fol: playback randomly selected from the playing folder no w. select one operation from next play mode and repeat mode respectively to determine the operation. when repeat mode is repeat_fol , the play_all_stop becomes invalid , and serves as play_next. when repeat mode is [3 ][ 4], the play_all_stop and play_fol_stop becomes invalid , and serves as play_next. repeat_all repeat_fol repeat_tun random_all random_fol [1] : play_next [2] : play_all_stop [3] : play_fol_stop [4] : play_tun_stop a next music reproduction mode and repeat mode combinatorial ef fective table downloaded from: http:///
34 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 13 . command operations 13 .1 write command the lsi allows command operations from an external microcomputer via a slave i 2 c serial interface. the command length to be sent varies depending on the command. table 9. shows the command specifications. t able 10 . shows enabled/disabled state of each command. table 10 . command operations command name comm and byte length command explanation of operation 1st 2nd 3rd 4th config chg_system _mode 4 0x60 0x00 n 0x00 ? set up system operation mode. ? please choose 3rd byte n from the following. the other setup does not receive a command. please be sure to perform the changes to each mode via config mode. the changes between player mode and fileread mode cannot be performed directly n= 0x00 ; config mode n= 0x01 ; player mode n= 0x02 ; file rw mode the initial setting is n= 0x00. stop 2 0x60 0x01 - - ? when receiving the stop command, end the present processing an d shift to the initial state in each system operation mode. ? playing of a file will be stopped when receiving the stop command during playing, a stop, and file search. ? playing of a file will be stopped when receiving the stop comman d during fast forward or fast back playing. ? after stopping playing the file, the lsi restarts playing it from the t une being stopped. however, if the memory is removed and new one is inserted before restarting, the lsi returns to the top tune of the memory. chg_dev 2 0x60 0x03 - - ? this command select device between usb memory and sd memory card. to do this, both devices must be connected or one device is p rovided against the other (usb memory against sd memory card, and vice versa). any other cases will be ignored. ? after the device is selected, the system operation mode remains t he previous mode (before selecting) and goes to the initial state . ? the setting values of the individual commands remain as they are. however, those of the repeat and random commands return to the initial values. dis_wdt 2 0x60 0x04 - - ? this command disables watch dog timer. ? initial setting is that watch dog timer function is effective . set_wdt 2 0x60 0x05 - - ? this command writes 1 to status wdt_rflg when it is executed. set_sort 4 0x60 0x06 n 0x00 ? set up file sorting operation in a memory. ? select n at the 3 rd byte from the following. any setting other than n=0x00 is considered to specify n=0x01. n=0x00: disables sorting of files/folders. data is read out in the order that is written to fat. n=0x01: enables sorting of files/folders. ? initial setting is n= 0x01. a sorting function is effective. downloaded from: http:///
35 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 set_12mout 4 0x60 0x07 n m ? set up clkout12 terminal and a mclk terminal output. ? select n at the 3 rd byte from the following. any other settings will not accept the command. n=0x00: disables 12 mhz clock output from the clkout12 terminal. n=0x01: enables 12 mhz clock output from the clkout12 terminal. ? select m at the 4 th byte from the following. any other settings will not accept the command. m=0x00: disables 12.288mhz/16.9344 mhz clock output from the mclk terminal. m=0x01: enables 12.288mhz/16.9344 mhz clock outp ut from the mclk terminal. ? the 16.9344 mhz clock is a clock which buffers the input from the xin_pll terminal. ? the 12.288 mhz clock is divided from clk24mi terminal input. ? initial setting is n= 0x00 and m= 0x00 . output is invalid. set_mp3 4 0x60 0x09 n 0x00 ? select the layer of the mpeg audio to play . ? select n at the 3 rd byte from the following. any setting other than n=0x00 is considered to specify n=0x01. n=0x00: plays all the files having extension mp1 , mp2, and mp3. n=0x01: plays the files having extension mp3 only. ? initial setting is n= 0x00. all the files of mp1, mp2, and mp3 are reproduced. ? transmission of this command before the transmission of enable_mediadrv and the set_sd command. set_lbit 4 0x60 0x0d n 0x00 ? set up lbit and a copy bit when spdif output. ? select n at the 3 rd byte from the following. any setting other than n=0x01 is considered to specify n=0x00. n=0x00: spdif lbit=1, copy bit = 0 (copy disabled). n=0x01: spdif lbit=0, copy bit = 1 (copy enabled) . ? initial valu e is n= 0x00, (ban on a copy) . set_utpkt 4 0x60 0x0f n 0x00 ? set up a usb terminal output. ? select n at the 3 rd byte from the following. any other setting is considered to specify n=0x01. n=0x00: normally operating terminal n=0x01: outputs a test packet from the usb terminal. ? initial value is n= 0x00. get_dev_free 4 0x60 0x10 0x00 0x00 ? analyze the availability of the media selected now. ? the lsi starts analyzing the free space after receiving the command. during analysis, search=0x1 is set. upon completion of analysis, search=0x0 is set. ? after analyzing the free space, you can use the read_dev_free command to obtain the current free space. ? the lsi does not monitor the free space automatically. whenever changing the system operation mode or the selected media, you should restart analysis. set_tout_tur 4 0x60 0x18 0x01 n ? specify the wait time after the first-time test unit ready command in usb memory mount operation. ? setting value [value of set_tout_tur] x 2 x [value of set_retval] becomes the wait time. ? initial setting is n=0x4 ( 4 x 2 x 375 = 3,000msec) . ? specify n within the range from 0x01 to 0xff. set_idl_time 8 0x60 0x18 0x02 0x00 ? specify the idle time after usb memory bus reset. ? specify the setting value to the 5 - 6th byte with a little endian. ? setting value {6 th=m, 5 th=n} x0.167 (usec) becomes wait time. ? initial setting is 220usec (setting value =1325= {m=x05, n=x2d}) . ? specify setting value within the range from300 (50usec) to 9000 (1.5msec) set_usb_r _wait 6 0x60 0x18 0x03 0x00 the wait time after bus reset is set up at the time of usb memory recognition ? specify the setting value to the 5 - 6th byte with a little endian. ? setting value {6 th=m, 5 th=n} x200 (msec) is wait time. an initial value is 600 msec (n,m=0x0300), and maximum value is downloaded from: http:///
36 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 13107 sec (n,m=0xffff). set_tout_m 4 0x60 0x18 0x04 0x00 ? the ack timeout of the command under memory mount is set up. ? the set point x100 (msec) is timeout. at the time, 5 th byte is upper byte and 6 th byte is lower byte. ? an initial value is 30 sec (5 th byte =0x2c, 6 th byte =0x01), and maximum value is 60 sec (5 th byte =0x58, 6 th byte =0x02).if set point is over the maximum value, this command is ignored. ? mount error will be carried out if a timeout occur. set_tout_c 4 0x60 0x18 0x05 0x00 ? the ack timeout of the commands at the time of play or stop or pause and sector read under memory mount is set up. ? the set point x100 (msec) is timeout. at the time, 5th byt e is upper byte and 6th byte is lower byte. ? an initial value is 5 sec (5th byte =0x32, 6th byte =0x00 ), and maximum value is 60 sec (5th byte =0x58, 6th byte =0x02). if set point is over the maximum value, this command is ignored. ? communication error will be carried out if a timeout occur. set_usb _getdev_f 6 0x60 0x18 0x 06 0x00 ? specify the timeout value for device descriptor acquisition in the head of usb memory mount operation. ? specify the setting value to the 5 - 6th byte with a little endian. ? setting value {6 th=m, 5 th=n} x100 (msec)becomes timeout value. ? communication error will be carried out if a timeout occur. ? initial setting is n=100 ( 10sec). ? specify n within the range from 0x1 to 0xffff. set_testu _mode 4 0x60 0x18 0x07 n ? specify the operation for the first-time test unit ready comma nd in usb memory mount operation. ? select n from the following. any other settings will not accept the command. n= 0x00 : retry is performed according to the setting value o f a set_retval command. n= 0x01 : retry is performed infinitely. n= 0x02 : cancels infinite retry of n=0x01 setting. ? initial setting is n= 0x00 (retry is performed according to th e setting value of a set_retval command.) set_usbcmd _can 8 0x60 0x18 0x08 0x00 ? specify the initialization procedure performed in usb memory mo unt operation. ? specify the mask of the initialization procedure with a little endi an. ? the following bit values should be used for an initiali zation procedure mask. when a bit is 0, an applicable initialization procedure is perf ormed. when a bit is 1, an applicable initialization procedure is not performed. 0x0001 : get_device_status 0x0002 : clear_feature 0x0004 : set_address 0x0008 : get_descriptor 0x0010 : get_config 0x0020 : set_config 0x0040 : get_lun 0x0080 : clear_port_feature 0x0100 : get_port_status 0x0200 : set_port_feature 0x0400 : get_hub_descriptor 0x0800 : inquiry 0x1000 : test_unit_ready 0x2000 : request_sense 0x4000 : read_capacity ? initial setting is0x0000 . ? please specify 0 to 7th-8th byte. set_retval 6or8 0x60 0x18 0x09 n ? specify the retry operation performed in usb memory mount operation. ? specify the setting value from the 5th byte with a little endian. ? the length of a setting value changes with values of n. ? select n from the following. any other settings will not accept the command. n= 0x00: specify the number of times of execution of sector re ad at 2 downloaded from: http:///
37 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 bytes. setting value+1 becomes the number of times of exec ution. initial setting is 3. specify n within the range from 0x0 to 0xffff. n = 0x01: specify the times of retry for first-time device desc riptor acquisition at 2 bytes. initial setting is 3. specify n withi n the range from 0x1 to 0xffff. n = 0x02: specify the number of times of execution of the first- time test unit ready command at 2 bytes. initial setting is 375. s pecify n within the range from 0x0 to 0xffff. n = 0x05: specify the timeout setting in the hub port scan at 4 bytes . initial setting is 30000. specify n within the range from 0x 1 to 0xffff_ffff. n = 0x06: specify the number of times of execution of the second-time test unit ready command at 2 bytes. initial setting is 375. specify n within the range from 0x0 to 0xffff. set _retrymode 6 0x60 0x18 0x0a n ? specify the operation for the each processing in usb memory m ount operation. ? select 5th byte from the following. 0x00 : retry is performed according to the preset value or sp ecified value by command. 0x01 : retry is performed infinitely. 0x02 : cancels infinite retry setting (0x01) . ? select n from the following. any other settings will not accept the command. n= 0x01: specify the operation of sector read. n= 0x02: specify the operation of first-time device descripto r acquisition n= 0x03: specify the operation of hub port scan. n= 0x04: specify the operation of the waiting for the ack respons e for other command request. n= 0x05: specify the operation of wait after first-time bus reset. set_tur_pass 4 0x60 0x18 0x0b n ? specify the operation after test unit ready timeout in usb memory mount operation. ? select n from the following. any other setting is considered to specify n=0x01. n=0x00: testunitready timeout is considered as mount failure. n=0x01: if the number of effective lun is one, continues mou nt operation. ? initial value is n= 0x00. set_testu _mode2 4 0x60 0x18 0x0c n ? specify the operation for the second-time test unit ready com mand in usb memory mount operation. ? select n from the following. any other settings will not accept the command. n= 0x00 : retry is performed according to the setting value o f a set_retval command. n= 0x01 : retry is performed infinitely. n= 0x02 : cancels infinite retry of n=0x01 setting. ? initial setting is n= 0x00 (retry is performed according to th e setting value of a set_retval command.) set_tout_tur2 6 0x60 0x18 0x0d 0x00 ? specify the wait time after the second-time test unit ready co mmand in usb memory mount operation. ? setting value [value of set_tout_tur2] x 2 x [value of set_retval] becomes the wait time. ? specify the setting value to the 5 - 6th byte with a little endian. ? initial setting is n=0xff (255 x 2 x 375 =191,250msec). ? specify n within the range from 0x01 to 0xffff set_emp_dir 4 0x60 0x1a n 0x00 ? at the time of the fat analysis, a number isn't given to fold ers which the file which can reproduce is not in through. ? select n at the 3 rd byte from the following. any other setting is considered to specify n=0x01. n=0x00 ; a number is assigned in folders as well which the file which can reproduce is not in through. n=0x01 ; a number isnt assigned in folders as well which the file which can reproduce is not in through. ? initial value is n= 0x00. downloaded from: http:///
38 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 set_nodiff 4 0x60 0x21 0x00 n ? when folder and file are sorted. it is configured whether it ca ses sensitivity of the alphabet. when it was configured without a distinction. it becomes on ly alphabet ("a" - "z" and "a" - "z") that it is equated. ? in the case of the entry only for short filenames, cannot dis tinguish the small and capital letter. ? select n at the 4 rd byte from the following. any other setting is considered to specify n=0x01. n=0x00 ; alphabet doesn't case sensitivity. n=0x01 ; alphabet cases sensitivity. ? initial value is n= 0x00. set_ignore 12 0x60 0x 22 0x00 n ? specify the character string disregarded at the time of sorting files and folders. ? the specified character string is compared with the head of the name . ? specify 4byte ascii character string to 5-8th byte. ? if the ascii character is less than 4byte, fill with 0x00 data. ? select n from the following. n=0x00 ; normal sort. specified character is not disregarded. n=0x01-0x04 ; specified character is disregarded. specify cha racter length to n. ? initial value is n= 0x00.(normal sort) set_src_off 4 0x60 0x23 0x00 0x01 ? sample rate converter is used in off ? after this command transmission, src is turned off. ? sample rate converter can't be turned on by the command. turne d on it by the ic reset. set_sd 4 0x60 0x24 n m ? specify the use of a serial bus. ? select n from the following. n=0x00:no effective-i/f n=0x01:sd i/f ? initial setting is n=0x00(no effective-i/f) . ? select m from the following. m=0x00: initialization processing is carried out after de te cting sd connection. m=0x01: initialization processing is not carried out after d etecting sd connection. ? initial setting is m=0x00(initialization processing is carried out ) . ? when select m=0x01, send set_sd_info command in advance. auto_recog _lun 4 0x60 0x25 n 0x00 ? when multiple lun device is connected, the auto polling of the test unit ready to each lun is enabled. ? the result of the polling is saved to lun_ready status. then, lun_ready_renew status notifies the updating. ? select n from the following. any other setting is considered to specify n=0x01. n=0x00 ; the auto polling of the test unit ready is disabled. n=0x01 ; the auto polling of the test unit ready is enabled. ? initial setting is n=0x00(the auto polling of the test uni t ready is disabled) . set_recog _tim 4 0x60 0x26 0x00 n ? cycles to do the auto polling of auto_recog_lun is configured. ? set value x200 (msec) becomes the cycle of the polling perform ance. ? initial value is 1sec. recog_lun 4 0x60 0x27 0x00 0x00 ? check test unit ready of each lun , and update lun_ready status only once. set_wma 4 0x60 0x28 0x00 0x00 ? the file of the extension "wma', "asf" is removed from the pla yback object. ? the configuration of this command can't do exemption by th e command. exempt it by the ic reset. set_aac 4 0x60 0x29 0x00 0x00 ? the file of the extension"mp4', "m4a", "3gp" is removed from the playback object. ? the configuration of this command can't do exemption by th e command. exempt it by the ic reset. set_lun 4 0x60 0x31 0x00 n ? lun, which usb memory mounts, is specified. ? lun specified at the time of usb connection mounts. ? when another lun is already mounted, re-mounts by downloaded from: http:///
39 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 force_discon_usb command and force_con_usb command, when not specifying lun, effective lun becomes an auto setup a nd lun detected first is mounted at the time of usb memory connection. (initial value) reset_lun 4 0x60 0x32 0x00 0x00 ? effective lun is set to auto and lun detected first comes to b e mounted at the time of usb memory connection. force_discon _usb 4 0x60 0x33 0x00 0x00 ? force usb memory to be disconnected. ? when play the usb again, re -connect by force_con_usb command. fo rce_con _usb 4 0x60 0x34 0x00 0x00 ? mount usb memory again,. force_discon _sd 4 0x60 0x36 0x00 0x00 ? force sd card to be disconnected force_con_sd 4 0x60 0x37 0x00 0x00 ? mount sd card again. set_sd_tmout 8 0x60 0x38 0x01 n ? specify the timeout value for sd cad mount operation. ? specify the setting value to the 5 - 8th byte with a little endian. ? setting value (msec) becomes timeout value. ? if setting value is 0 , retry is performed infinitely until it i s cancelled by set_sd_abort command. ? select n from the following. any other settings will not accept th e command. n=0x00: specify timeout of the whole sd mount operation. initial setting is 30000. n=0x01: specify timeout of the first-time cmd8 response. initial se tting is 500. n=0x02: specify timeout of the second-time cmd8 response. initi al setting is 1000. n=0x03: specify timeout of the sector reading. initial setting is 5000. set_sd_abort 4 0x60 0x38 0x00 0x00 ? cancels infinite retry of sd mount operation by set_sd_tmout command. ? sd mount operation is failed. set_wav 4 0x60 0x39 0x00 0x00 ? remove the file of extension "wav" for reproduction. ? a setup of this command cannot be canceled. please reset the lsi. set_mp3_play 4 0x60 0x3a 0x00 0x00 ? remove the file of extension "mp3", "mp1", and "mp2" for reproduction. ? a setup of this command cannot be canceled. please reset the lsi. set_usb_subc 4 0x60 0x3b 0x00 m ? specifies valid subclass code for usb mount operation. ? specify the combination of the following bits to m 0x01 : the subclass 0x01 is valid. 0x02 : the subclass 0x02 is valid. 0x04 : the subclass 0x03 is valid. 0x08 : the subclass 0x04 is valid. 0x10 : the subclass 0x05 is valid. 0x20 : the subclass 0x06 is valid. ? initial setting is m=0x30 (the subclass 0x05 and 0x06 is valid ) . enable _mediadrv 4 0x60 0x3c 0x00 0x00 ? enables usb memory/sd card mount operation. ? usb memory/sd card mount operation is disabled until this command is received. ? this command is effective after lsi reset only once. set_sd_info 10 0x60 0x3d n n ? specify the inside information of sd driver. ? when you select m= 0x01 (initialization processing is no t carried out) for set_sd command, send set_sd_info command in advance. ? specify 8 bytes data acquired by the read_sd_status command to the 3rd - 10th byte. set_patch _code 4 0x6f 0x03 0x00 0x00 ? download a patch image packet to this lsi. ? specify the start offset of the patch image packet to the 5-6th byte with a little endian. ? specify the length of the patch image packet to the 7-8th b yte with a little endian. ? specify the patch image packet after the 9th byte. ? the maximum length of the patch image packet is 502 bytes. ? specify 2 bytes crc16 after the patch image packet with a li ttle downloaded from: http:///
40 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 endian. ? when crc16 is not right, the command is not accepted and precom status becomes h. set_patch_crc 4 0x6f 0x03 0x01 0x00 ? validate the patch image. ? specify the crc16 of the whole patch image to the 5-6th byte w ith a little endian. ? specify the length of the whole patch image to the 7-8th byte with a little endian. ? when crc16 or length is not right, the command is not accepted and precom status becomes h. play control play 2 0x61 0x01 - - ? when receiving the play command during stop, the lsi starts playing the file currently selected. ? when receiving the play command during pause, the lsi starts playing the file at the paused time. ? when receiving the play command in the config mode, the lsi automatically goes to the player mode and plays the first tune in the sort order. pause 2 0x61 0x02 - - ? when receiving the pause command during play, the lsi pauses playing of the file home 4 0x61 0x03 n 0x00 ? when receiving the home command, the lsi searches files of the first tune within the memory. ? tag analysis, if it is enabled, is performed. ? it is not the first tune in the memory at the time of the random setup, but it is moved for the tune chosen at random. ? select n at the 3 rd byte from the following. any setting other than n=0x00 is considered to specify n=0x01. n=0x00: stops after search is completed . n=0x01: starts playing after search is completed. playmode 4 0x61 0x04 n 0x00 ? when receiving the playmode command, the lsi changes play mode in accordance with the se tting of n in the 3 rd byte. ? during play, the play mode is immediately changed. during stop, thi s command cannot start playing the file. ? select n at the 3 rd byte from the following. any other settings will not accept the command. n=0x00: changes to normal play. n=0x01: changes to fast forward. n=0x02: changes to rewind. ? initial setting is n= 0x00. it is normal playing. vol+ 4 0x61 0x06 0x01 0x00 ? when receiving the vol+ command, the lsi controls the sou nd volume step by incrementing by 1. ? the sound volume is controlled in 32 steps from - (minimum volume) to 0 db (maximum volume). vol- 4 0x61 0x06 0x02 0x00 ? when receiving the vol- command, the lsi controls the volume ste p by decrementing by 1. ? the sound volume is controlled in 32 steps from - (minimum volume) to 0 db (maximum volume). repeat 4 0x61 0x06 0x03 0x00 ? this command changes the mode for repeat. ? repeat command toggles as: memory repeat ->1 music repeat - > folder repeat. ? the repeat reproduction mode is initialized by "all songs repeat in the memory" by accepting "repeat" command when the random in the folder is set by "set_reprand" command. ? for the settings of the repeat, random, and set_reprand commands, the one finally set becomes enabled. ? initial setting is the all-songs repeat in a memory. random 4 0x61 0x06 0x04 0x00 ? this command changes the mode for random play. ? if random play is enabled, the lsi plays the currently-played file at random in the area of 128 files in the sort order. ? the random command toggles a s: normal playrepeat all the tunes within the memory. downloaded from: http:///
41 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 ? the repeat reproduction mode is initialized by "all songs repeat in the memory" by accepting "random" command when the random in the folder is set by "set_reprand" command. ? for the settings of the re peat, random and set_reprand commands, the one finally set becomes enabled. ff 4 0x61 0x07 m n ? when receiving the ff command during play, pause, or stop, the lsi searches the file n tunes ahead from the file being played or pa used in the sort order. ? if the number of remaining files is less than n in the sort order, the lsi searches back to the first file. ? if n=0, the lsi searches the current file. ? if repeat or random is set, the lsi searches the next file in accordance with the setting. however, if repeats one tune is set, the lsi searches the next file in accordance with the set_reprand command setting. ? if tag analysis is enabled, the lsi also performs that analysis. ? after searching, the lsi operates in accordance with the setting in the 3 rd by te. select m at the 3 rd byte from the following. any setting other than m=0x00 is considered to specify m=0x01. m=0x00: stops after search is completed. m=0x01: starts playing after search is completed. ? the number of tunes to be searched depends on the settin g of n in the 4th byte. fb 4 0x61 0x08 m n ? when receiving the fb command during play, pause, or stop, the lsi searches the file, n tunes back from the file being played, paus ed or stopped, in the sort order. ? when the lsi play is playing a tune in less than n files from the top in the sort order, it searches the first tune. however, only when the f ile to be searched is the first tune within the memory in the repeat within the memory setting, the lsi searches the file across the last tune wi thin the memory to the first one. if the file to be searched is the first file within the folder in the repeat within the folder settin g, the lsi searches the file within the same folder. ? if n=0, the lsi searches the top of the current file. however if it receives the fb command with n=0 when the play time is within 1 second, the lsi searches the top of the previous tune. ? if repeat or random is set, the lsi searches files in accordance with the setting. however, if repeats one tune is set, the lsi searches the next file in accordance with the set_reprand command setting. ? if tag analysis is enabled, the lsi also performs that analysis. ? after searching, the lsi operates in accordance with the setting in the 3 rd byte. select m at the 3 rd byte from the following. any setting other than m=0x00 is considered to specify m=0x01. m=0x00: stops after search is completed. m=0x01: starts playing after search is completed. ? the number of tunes to be searched depends on the settin g of n in the 4th byte. fol+ 4 0x61 0x09 m n ? when receiving the fol+ command during play, pause, or stop, the lsi searches the folder n tunes ahead from the one having the fil e being played, paused or stopped in the sort order. ? if the remaining folders are less than n in the sort order, the lsi returns to the first folder. ? even if repeat or random is set, the lsi searches the file in the status where repeat mode is set. ? search the file chosen at random when random is set. ? if n=0, the lsi searches the top of the current folder. ? if tag analysis is enabled, the lsi also performs that analysis. ? after searching, the lsi operates in accordance with the setting in the 3 rd byte. select m at the 3 rd byte from the following. any setting other than m=0x00 is considered to specify m=0x01. m=0x00: stops after search is completed. m=0x01: starts playing after search is completed. ? the number of tunes to be searched depends on the settin g of n in the 4th byte. downloaded from: http:///
42 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 fo l- 4 0x61 0x0a m n ? when receiving the fol- command during play, pause, or stop, th e lsi searches the folder n tunes back from the one having the file being played or paused in the sort order. ? when playing a tune less than n folders from the top in the sort o rder, the lsi returns to the first folder. however, when playing a file w ithin the first folder, the lsi searches the folder across the last tune with in the memory. ? even if repeat or random is set, the lsi searches the file in the status where repeat mode is set. ? search the file chosen at random when random is set. ? if n=0, the lsi searches the top of the current folder. ? if tag analysis is enabled, the lsi also performs that analysis. ? after searching, the lsi operates in accordance with the setting in the 3 rd byte. select m at the 3 rd byte from the following. any setting other than m=0x00 is considered to specify m=0x01. m=0x00: stops after search is completed. m=0x01: starts playing after search is completed. ? the number of folders to be searched depends on the se tting of n in the 4th byte. play_resume 46 0x61 0x0b 0x00 n ? this command sets 42-byte data obtained by the read_resume_info command to 5 th - 46 th bytes. ? set the data in ascending order of the offsets obtained by the read_resume_info command. ? movement after the command write depends on the setting of n i n the 4th byte. ? select n at the 4 rd byte from the following. any other setting is considered to specify n=0x01. n=0x00 ; playback is started in the time when read_resume_info command was forwarded. n=0x01 ; stop (pause) in the time when read_resume_info command was forwarded. n=0x02 ; playback is started from the front of the tune when read_resume_info command was forwarded. n=0x03 ; stop (pause) the front of the tune when read_resume_info command was forwarded. ? if the resume target cannot be searched, the lsi searches the first tune of in the device and plays or stop (pause). play setting set_dout 4 0x61 0x10 0x00 n ? this command sets audio output. ? select n at the 4 th byte from the following. any other settings will not accept the command. n=0x00: outputs via audio line. n=0x01: outputs using the digital audio interface (spdif). n=0x02: outputs in i 2 s(32fs) format. n=0x03: outputs in i 2 s(48fs) format. n=0x04: outputs in i 2 s(64fs) format. n=0x05: outputs in eiaj(32fs) format. n=0x06: outputs in eiaj (48fs) format. n=0x07: outputs in eiaj (64fs) format. ? by default, n=0x00: "audio line output" is set. set_eq 4 0x61 0x10 0x01 n ? this command sets the equalizer. ? set n at the 4 th byte from the following. any other settings will not accept the command. n=0x00: eq off n=0x01: pops n=0x02: jazz n=0x03: rock n=0x04: classic n=0x05: r&b n=0x07: eq off n=0x08: bass boost1 n=0x09: pops + bass boost1 n=0x0a: jazz + bass boost1 n=0x0b: rock + bass boost1 n=0x0c: classic + bass boost1 downloaded from: http:///
43 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 n=0x0d: r&b + bass boost1 n=0x0f: bass boost2 ? by default, n=0x00: eq off is set. set_vol 4 0x61 0x10 0x02 n ? this command sets the sound volume with the value of n at the 4 th byte in 32 steps from 0x00 to 0x1f. ? setting range outside 0x00 to 0x1f will not accept the command. ? by default, n=0x06 is set. set_next 4 0x 61 0x10 0x03 n ? this command sets next tune play mode. ? select n at the 4 th byte from the following. any settings other than n=0x04 will not accept the command. n=0x00: play_next: after the tune being played is completed, the lsi automatically searches the next tune and starts playing it. n=0x01: play_all_stop: after the last tune within the memory being played is completed , the lsi reaches the next tune and stops. when the play command is issued again, the lsi starts playing the next tu ne. n=0x02: play_fol_stop: after the last tune within the folder being played is compl eted, the lsi searches the next tune and stops. when the play command is issued again, the lsi starts playing the next tune. n=0x03: play_tun_stop: after the tune being played is completed, the lsi searches the next tune and stops. when the play command is issued again, the lsi starts playing the next tune. ? by default, n=0x00 is set. ? if the repeat mode is set to repeat within folder, operation setting n=0x01 will become disabled. the lsi searches the next tune and then starts playing it. ? if the repeat mode is set to repeat one tune, operation settings n=0x01 and 0x02 will become disabled. the lsi searches the next tune and then starts playing it. ? if the repeat mode is set to random within memory or random within folder, the operation settings n=0x01 and 0x02 will become disabled. the lsi searches the next tune and then starts playing it. set_reprand 4 0x61 0x10 0x04 n ? this command sets repeat mode. ? select n at the 4 th byte from the following. any other settings will not accept the command. n=0x00: repeat_all: repeats within the memory repeats all the tunes within the memory being played. n=0x01: repeat_fol: repeats within the folder repeats the tunes within the folder being played. n=0x02: repeat_tun: repeats one tune repeats the tune being played. a setup of the repeat in the memory is followed when ff and fb command. n=0x03: repeat_tun: repeats one tune repeats the tune being played. a setup of the repeat in the memory is followed when ff and fb command. n=0x04: random_all: random within the memory plays tunes at random starting from the one being played, in a range 128 tunes ahead and back of the tune. n=0x05: random_fol: random within the folder plays tunes at random within the folder starting from the one bein g played, in a range 128 tunes ahead and back of the tune. ? by default, n=0x00 is set. ? for the settings of the repeat, random and set_reprand commands, the one finally set becomes enabled. downloaded from: http:///
44 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 set_tag 4 0x61 0x10 0x05 n ? this command sets tag analysis mode. ? select n at the 4 th byte from the following. any settings other than n=0x00 will be considered to specify n=0x01. n=0x00: do es not perform tag analysis. n=0x01: performs tag analysis. ? tag analysis is performed immediately before the lsi starts play ing a tune, and started from the file to be searched after the setting i s enabled. ? after tag analysis is completed, the lsi wr ites the result to the status register. ? by default, n=0x01: "performs tag analysis" is set. set_prm 8 0x61 0x10 0x07 l ? this command sets play time (m) and skip time (n) for fast forward and rewind. ? play time is a period of time to make sound. skip time is a p eriod of time to skip during search. ? for fast forward and rewind, a cycle of {play time ( m) + skip time ( n) + error ( o) } is repeated. the error is determined by the difference between the minimum decode unit and the rounding error between the play time and the real time requiring to search the skip time. the error varies depending on the fil e and memory structure. ? play time is set to m[15:0]= [6th byte, 5th byte], and skip time to n[15:0]= [8th byte, 7th byte]. the unit is msec. by default, play time is 300ms=m[15:0]= [6th byte=x01,5 th byte=x2c], and skip time is 2100ms=n[15:0]= [8th byte=x08,7th byte=x34]. specifying 0x0 sets the default. set play time to 300ms or more, and skip time to (play time16) or less. when it is moved by the fast rewind play in the front to the tu ne, the regenerated time of the first period may become shorter than setup time. ? 0xl in the 4 th byte sets the attenuation level during fast forward and rewind. the allowable level is -6db x[4th byte]. allowable setting range is from 0x00 to 0x10. by default, 0x02=-12db is set. setting of 0x10 is equivalent to mute. set_next_mod e_on_err 4 0x61 0x10 0x08 n ? set movement at the time of the decode error outbreak. ? select n at the 4 th byte from the following. any settings other than n=0x00 will be considered to specify n=0x01. n=0x00 ; decerr_next_stop after next music search completion after the decode error detection, have "be awaiting a play start". n=0x01 ; decerr_next_play after next music search completion after the decode error detection, play start the next music. by default, n=0x00 is set. set_search_li mit_file 8 0x61 0x10 0x09 n ? set the number of the find playable files upper limits in throughout the memory. ? select n at the 4 th byte from the following. any settings other than following will be not considered. n=0x00 ; set them for a usb device n=0x01 ; set them for a sd device ? specify the find playable f ile s upper limits to the 5-8th byte with a little endian. the settable value is 1~ 65 535. ? when the file detection total number in the memory beyond the s et v alue , do not search a further files. an initial value is 65535. set_search_li mit_folder 8 0x61 0x10 0x0a n ? set the number of the find folder upper limits in throughout the memory. ? select n at the 4 th byte from the following. any settings other than following will be not considered. downloaded from: http:///
45 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 n=0x00 ; set them for a usb device n= 0x01 ; set them for a sd device ? specify the folders upper limits to the 5-8th byte with a little endian. the settable value is 1~512. ? when the folder detection total number in the memory beyond th e set value, do not search a further folders. an initial value is 512 . ? depend on the setting of the "set_emp_dir" command whether count the folder which there is not a playable file. set_search_li mit_file_in_fol der 8 0x61 0x10 0x0b n ? set the number of the find playable files upper limits in each subfolder memory. ? select n at the 4 th byte from the following. any settings other than following will be not considered. n=0x00 ; set them for a usb device n=0x01 ; set them for a sd device ? specify the find playable f ile s upper limits to the 5-8th byte with a little endian. the settable value is 1~1024. ? when the file detection total number in the subfolder beyond the set value, do not search a further file s. an initial value is 1024. ? the number of the find playable file upper limits in the root folder is fixed with 65535. file read fopen_r 260 0x63 0x01 0x00 0x00 ? this command specifies the full path and name of the file to be read from the memory using the file read function. ? if a file exists after receiving the command, open the specified f ile. ? the full path is 256 bytes at maximum (including drive letter (a: \), file name and extension). set this at the 5 th -260 th bytes. if the length is less than 256 bytes, insert 0x00 at the end. insert \ (0x5c) f or the delimiter between folder layers. ? the drive letter is "a:\" for usb and "b:\" for sd. ? you can also specify the path in a format without drive letter. i n this case, the length is 253 bytes at maximum. ? if the full path has a drive letter different from the one for th e memory being selected, an error occurs. (for example, "b:\" is se t for the full path when usb is selected.) fclose 4 0x63 0x03 0x00 0x00 ? this command closes the file. ? after the file read function is completed, close the file. fread_dat 6 0x63 0x06 n n ? this command specifies the position of data to be read from the fil e at file read. ? specify the data position to be read in the 3 rd to 6 th bytes in little endian format. ? when using the i 2 c bus, send this command and then check that the frdready bit turns 1. then, send the read_fr_data command. data of up to 256 bytes can be read at one time. downloaded from: http:///
46 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 table 10. command enable/disable in each system operation mode command command enable/disable in each system operation mode command enable/disable in each status config player file read stop play search (mode) search (file) analyze write config chg_system_mode stop chg_dev dis_wdt set_wdt set_sort set_12mout set_mp3 set_lbit set_utpkt get_dev_free set_tout_tur set_idl_time set_usb_r_wait set_tout_m set_tout_c set_usb_getdev_f set_testu_mode set_usbcmd_can set_retval set_retrymode set_testu_pass set_testu_mode2 set_tout_tur2 set_emp_dir set_nodiff set_ignore set_src_off set_sd auto_recog_lun set_recog_tim recog_lun set_wma set_aac set_lun reset_lun force_discon_usb force_con_usb force_discon_sd force_con_sd set_sd_tmout set_sd_abort set_wav set_mp3_play enable_mediadrv set_sd_info set_patch_code downloaded from: http:///
47 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 set_path_crc play control play pause home playmode vol+ vol- repeat random ff fb fol+ fol- play_resume play setting set_dout set_eq set_vol set_next set_reprand set_tag set_prm set_next_mode_on _err set_search_limit_f ile set_search_limit_f older set_search_limit_f ile_in_folder file read fopen_r fclose fread_dat =enable =disable downloaded from: http:///
48 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 13.2 status output the operation information, such as internal statuses, play tim e, folders, files and tags, is output using an i 2 c interface. the statuses shown in table 11. status register map is output. when reading status via i 2 c, the offset position is automatically incremented after readi ng byte data. however, by issuing the i 2 c start condition, the offset position is reset to offset specified by the pr evious command. to read statuses, two methods are available: to specify off set of the status register map and read any bytes continuously from the offset position; and to read byte data by a comma nd without specifying the offset position. table 12. shows the status output commands. table 13 sho ws the effective state of the status output command. byte data, when reading via i 2 c, is output in little endian format. when read over offset=0x140, offset does not return to 0x00, there fore the read value turns into an unfixed value. table 11. status register map offset status bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 (msb) (lsb) 0x00 status1 error search busy mchng stop pause play 0x01 status2 irpto 0 stop_info 0 precom res_err dec_err 0x02 status3 usbins sdins usbfile sdfile mdevusb mdevsd pdevusb pdevsd 0x03 status4 1 tinfusb tinfsd set_tag ana_tag taginfo 0x04 status5 0 set_sd fbp ffp playfile 0x05 status6 precomstat 0x06 volinf 0 0 0 volinf 0x07 doutinf eqinf doutinf 0x08 pmodeinf repeatinf setnextinf 0x09 sel_mp3 0 set_src set_aac set_wma wdt_rflg 12mout set_sort set_mp3 0x0a psec psech psecl 0x0b pminl pminlh pminll 0x0c pminh pmihh pminhl 0x0d tsec tsech tsecl 0x0e tminl tminlh tminll 0x0f tminh tminhh tminhl 0x10 langl langl 0x11 langh langh 0x12 pfolnl pfolnl 0x13 pfolnh pfolnh 0x14 pfilenfll pfilenll 0x15 pfilenflh pfilenlh 0x16 pfilenfhl pfilenhl 0x17 pfilenfhh pfilenhh 0x18 pfilenmll pfilenll 0x19 pfilenmlh pfilenlh 0x1a pfilenmhl pfilenhl 0x1b pfilenmhh pfilenhh 0x1c tfolmeml tfolmeml 0x1d tfolmemh tfolmemh 0x1e tfilememll tfilememll 0x1f tfilememlh tfilememlh 0x20 tfilememhl tfilememhl 0x21 tfilememhh tfilememhh 0x23 numanafolll numanafolll 0x24 numanafollh numanafollh 0x25 numanafolhl numanafolhl 0x26 numanafolhh numanafolhh 0x27 tfileanafoll l tfileanafolll 0x28 tfileanafoll h tfileanafollh 0x29 tfileanafolh l tfileanafolhl 0x2a tfileanafolh h tfi leanafolhh 0x2b tfolanafoll tfolanafoll 0x2c tfolanafolh tfolanafolh 0x2d tfolanaheirl tfolanafoll 0x2e sortoption set_nodi ff set _ignore set_emp _dir 0 0 0 0 0 0x2f fiostat fioerr 0 0 fioopen frdready 0 fiosearc h fiomode 0x30 fioset 0 0 0 0 0 0 fioo pe 0x35 lun_ready lun_ready_l downloaded from: http:///
49 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 _l 0x36 lun_ready _h lun_ready_h 0x37 meminfo meminfo lun _busy lun_read y_renew reseve reseve 0x38 - 0x13f comarea comarea offset status bit name contents 0x00 status1 7 error error situation 0 ; nothing error, 1 ; error * error=0 in config mode. 6:5 search search situation bit6:device recognition 0: search stop 1: under a search bit5:file search 0: search stop 1: under a search 4 busy busy situation 0: non-busy , 1:busy 3 mchng music change detection 0: under a music end / stop , 1: stop after search/ playing. 2 stop stop state 0: not stopped, 1: under a stop 1 pause pause state 0: not stopped, 1: under a stop 0 play playing state 0: not reproducing, 1: under playing 0x01 status2 7 irpto irpto interruption state 0: nothing interruption, 1;interruption 6 0 0 5:4 stop_info stop state detailed information 0: it is except during the stop/stop after device mount, 1: stop pull ed [ music ] out the head, 2: error stop, 3: stop by set_next command setting 3 0 0 2 precom the last command situation 0;normal receptionist, 1;abnormal ities (un-receiving) 1 res_err resume error 0: with no error, 1: error 0 dec_err decoding error 0: with no error, 1: error 0x02 status3 7 usbins usb connection detection 0:usb un-connecting, 1:usb connection detection 6 sdins sd connection detection 0:sd un-connecting, 1:sd connection detection 5 usbfile playable file existence in a usb memory 0;nothing, 1;existence 4 sdfile playable file existence in a sd memory 0;nothing, 1;existence 3 mdevusb usb memory recognition situation 0: un-recognizing , 1: recognition 2 mdevsd sd memory recognition situation 0: un-recognizing , 1: recognition 1 pdevusb usb memory situation 0: under a stop, 1: under playing/tag analysis 0 pdevsd sd memory situation 0: under a stop, 1: under playing/tag analysis 0x03 status4 7 1 1 6 tinfusb acquisition of total file/folder number in a usb memory. 0: un-acquiring, 1: finishing acquisition 5 tinfsd acquisition of total file/folder number in a sd memory. 0: un-acquiring, 1: finishing acquisition 4 set_tag ta g analysis setup 0:tag analysis off, 1:tag analysis on 3 ana_tag tag analysis situation 0;tag analysis stop, 1;under tag analysis 2:0 taginfo existence tag kind 0:id 3v1, 1:id 3v2, 2;with wma, 3;aac, 4:wav, and 7: no tag information 0x04 status5 7 0 0 6 set_sd sd i/f effective 0:off , 1:on 5 fbp fast back playing situation 0: normal playing, 1: fast-back playing 4 ffp fast forward playing situation 0: normal playing, 1: fast-forward playing 3:0 playfile playing file information 1:mp3, 2:wma, 3:aac, 4:wav 0x05 status6 7:0 precomsta t the last command receptionist situation detailed information; the last command outputs whether it received normally. a state is held to the following command. a state is not cleared by the lead command. the 0th bit is the same as that of precom status. they are the contents at the time of abnormalities except it. 0x06 volinf 7:5 0 0 4:0 volinf volume setting information. the value set up by set_vol [4:0] is outputted. downloaded from: http:///
50 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 0x07 doutinf 7:4 eqinf eq setting information. the value set up by set_eq [3:0] is outputted. 3:0 doutinf audio output setting information. the value set up by set_dout [ 3:0] is outputted. 0x08 pmodeinf 7:4 repeatinf repeat mode setting information. the value set up by set_reprand [3:0] is outputted. 3:0 setnextinf play next mode setting information. the value set up by set_next [3:0] is outputted. 0x09 sel_mp3 7 0 0 6 set_src src effective 0: on , 1:off 5 set_aac aac file playback configuration 0:aac play , 1:aac not play 4 set_wma wma file playback configuration 0:wma play, 1:wma not play 3 wdt_rflg monitor register for wdt 0:after reset 2 12mout 12mhz clock output 0:off, 1:on 1 set_sort file sorting functional setup 0;sort function off, 1;sort function effective 0 set_mp3 mp3 file playing setup 0;extensions mp1 and mp2, mp3 playing, 1;reproduce only extension mp3. 0x0a psec 7:4 psech playing time second information [7:4] x 10 seconds 3 :0 psecl playing time second information [3:0] x 1 second 0x0b pminl 7:4 pminlh playing time minutes information [7:4] x 10 minutes 3:0 pminll playing time minutes information [3:0] x 1 minute 0x0c pminh 7:4 pminhh playing time minutes information [7:4] x 1000 minutes 3:0 pminhl playing time minutes information [3:0] x 100 minutes 0x0d tsec 7:4 tsech 1 track time second information [7:4] x 10 seconds 3:0 tsecl 1 track time second information [3:0] x 1 second 0x0e tminl 7:4 tminlh 1 track time minutes information [7:4] x 10 minutes 3:0 tminll 1 track time minutes information [3:0] x 1 minute 0x0f tminh 7:4 tminhh 1 track time minutes information [7:4] x 1000 minutes 3:0 tminhl 1 track time minutes information [3:0] x 100 minutes 0x10 langl 7:0 langl tag character code information lower byte [7:0] 0x11 langh 7:0 langh tag character code information higher byte [15:8] 0x12 pfolnl 7:0 pfolnl playing folder number in memory. lower byte [7:0] root becomes no.1. a number is shaken in order of sorting. 0x13 pfolnh 7:0 pfolnh playing folder number in memory. higher rank byte [15:8] 0x14 pfilenfll 7:0 pfilenll playing file number in the present folder. [15:0], l ow er byte [7:0], a number is shaken from no.1 in order of sorting. 0x15 pfilenflh 7:0 pfilenlh playing file number in the present folder. [15:0], higher rank byte [15:8] 0x16 pfilenfhl 7:0 pfilenhl playing file number in the present folder. [31:16], low rank b yte [23:16] 0x17 pfilenfhh 7:0 pfilenhh playing file number in the present folder. [31:16], higher rank by te [31:24] 0x18 pfilenmll 7:0 pfilenll playing file number in the memory. [15:0] low rank byte [7:0] 0x19 pfilenmlh 7:0 pfilenlh playing file number in the memory. [15:0] higher rank byte [15:8] 0x1a pfilenmhl 7:0 pfilenhl playing file number in the memory. [31:16] low rank byte [23:16] 0x1b pfilenmhh 7:0 pfilenhh playing file number in the memory. [31:16] higher rank byte [31:24] 0x1c tfolmeml 7:0 tfolmeml the number of total folders in a memory. low rank byte [7:0] 0x1d tfolmemh 7:0 tfolmemh the number of total folders in a memory. higher rank byte [15:8] 0x1e tfilememl l 7:0 tfilememll the number of total files in memory. [15:0] low-rank byte [7:0] 0x1f tfilememl h 7:0 tfilememlh the number of total files in memory. [15:0] higher-rank [15:8] 0x20 tfilememh l 7:0 tfilememhl the number of total files in memory. [31:16] low-rank byte [23:16] 0x21 tfilememh h 7:0 tfilememhh the number of total files in memory. [31:16] higher-rank byte [31 :24] 0x2e sortoptio n 7 set_nodiff cases sensitivity of the alphabet 0: cases sensitivity , 1: not cases sensitivity 6 set_ignore set characters is ignored 0:not ignored , 1:ignored 5 set_emp_di r a number isn't given to empty folders 0: number given , 1:number not given 1 4 0 0 0x2f fiostat 7 fioerr file io error situation 0: with no error, 1:error 6 0 0 5 0 0 4 fioopen file open state 0: un-open 1;during file open 3 frdready read-out fifo preparation situation 0:under preparation, 1:preparation o.k. downloaded from: http:///
51 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 2 0 0 1 fiosearch file io processing situation 0:processing stop, 1:under processing 0 fiomode file io mode effective/invalid 0;invalid 1; effective 0x30 fioset 7:6 0 0 5:4 0 0 3:0 fioope the contents situation of file io processing 0;with no processing , 1;open, 2;read, 3;write, 4;close, 5;delete 0x31 lun_read y_l 7:0 lun_ready_ l the condition of test unit ready of each lun [7:0] 0: ng , 1: ok 0x32 lun_read y_h 7:0 lun_ready_ h the condition of test unit ready of each lun [15:8] 0: ng , 1: ok 0x37 meminfo 7:4 meminfo memory device information chosen now 3 lun_busy test unit ready condition identification flag 0:not identification , 1: identification 2 lun_ready_ renew the change of state flag of test unit ready 0:changed , 1:not changed(it is cleared by 0 by a read_lun_ready command read. 1 reserve - 0 reserve - 0x38 - 0x13f comarea 7:0 comarea data common area the contents change with status read-out commands. (when read-out exceeding offset=0x140 is performed, offset does not return to 0x00, but the value read becomes unfixed) downloaded from: http:///
52 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 table 12. status output commands command name com mand command status status byte length 1st 2nd 3rd 4th the number of output bytes read_buff 4 0x6 c 0x00 n m arbitrary ? output the arbitrary number data of bytes from the offset position where the status register map was specified. ? offset is 3rd and 4 th byte. it is specified as a byte by little endian (m, n= 0x00, 0x00 to 0x01, 0xff) . read_status 4 0x6 d 0x00 0x00 0x00 6 ? output about internal status. ? output about offset 0x00-0x05 of a status buffer. read_pset 4 0x6 d 0x00 0x01 0x00 4 ? output about setting information. ? output about offset 0x06-0x09 of a status buffer. read_ptime 4 0x6 d 0x00 0x02 0x00 6 ? output about playing time information. ? output about offset 0x0a-0x0f of a status buffer. read_lang 4 0x6 d 0x00 0x02 0x01 2 ? output about tag character code information. ? output about offset 0x10-0x11 of a status buffer. read_pnum 4 0x6 d 0x00 0x02 0x02 10 ? output about the number under playing. ? output about offset 0x12-0x1b of a status buffer. ? an exact value of the number of total files and folders in memory cannot be acquired when music is specified by cursor and access data, such as a play_cursor command. read_tnum 4 0x6 d 0x00 0x02 0x03 6 ? output about the file in a memory, and the number of folders. ? output about offset 0x1c-0x21 of a status buffer. read_fnum 4 0x6 d 0x00 0x02 0x04 4 ? output the number of files which is in a folder during the present playing. read_pfile _name 4 0x6 d 0x00 0x03 n 130 ? output the file name of the file of the +nth file during the present playing. specify n from 0x00 to 0x03. n=0x00 is the present file. output is enabled only when the nth file is within the same folder where the one being played resides. if the nth file is in a different folder, 0 is output ? output data has the proposed data id (2 bytes). see 16. file name, folder name, tag information for the output format. read_pfol _name 4 0x6 d 0x00 0x04 0x 00 13 0 ? output the folder name of the file being played. ? output data has the proposed data id (2 bytes). see 6.4.6 for the output format. read_pfile _tag 4 0x6 d 0x00 0x05 n 130 ? outputs the data which is written to tag of the file being played. ? specify tag type with 0xn at the 4 th bytes. select n at the 4 th byte from the following. any other settings will not accept the command. n=0x00: title , n=0x01: artist , n=0x02: album , n=0x03: genre ? output data has the preposed data id (2 bytes). see 16. file name, folder name, tag information for the output format. read_resume _info 4 0x6 d 0x00 0x06 0x 00 42 ? outputs the data required to execute resume play. ? the data is output in little endian format. ? see 6.4.5 for the output format. read_dev _free 4 0 x6 d 0x00 0x07 n 8 ? outputs the free space analysis results of the file analyzed by the get_dev_free command. ? specify the space type to be output with n at the 4 th byte. select n at the 4 th byte from the following. any other settings will be considered to specify n=0x01. downloaded from: http:///
53 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 n=0x00: outputs the free space of the selected media by the byte. n=0x01: outputs the total space of the selected media by the byte. ? if the get_dev_free command has not been sent, this command outputs 0. read_devdesc 4 0x6 d 0x00 0x08 0x00 18 ? output a device descriptor value when the usb memory is inserted and chosen. ? vendor id and product id are the following offset. 0x08 vendor id lower byte 0x09 vendor id upper byte 0x0a product id lower byte 0x0b product id upper byte read_condesc 4 0x6 d 0x00 0x08 0x01 32 ? output a configuration descriptor value when the usb memory has been recognized. ? 32 bytes from the head of top configuration descriptor is outputted. read_inqiry 4 0x6 d 0x00 0x08 0x02 32 ? output a msc inquiry value when the usb memory has been recognized. ? vender identification (ascii) and product identification (ascii) are the following offset. 0x08-0x0f vender identification(ascii) 0x10-0x1f product identification(ascii) read_lun 4 0x6 d 0x00 0x08 0x03 1 in case of auto detection mode of lun, lun of mounted usb memory can be read. read_lun_num 4 0x6 d 0x00 0x08 0x04 1 read the total of lun of the usb memory which is connected now. read_set_lun 4 0x6 d 0x00 0x08 0x05 1 read lun specified by the "set_lun" command. in not setting up, 0xff is read. read_lun _ready 4 0x6 d 0x00 0x0a 0x00 2 ? the consequence of test unit ready of each confirmed lun by auto_recog_lun or recog_lun is read out. ? when test unit ready is ok, output 1. ? when test unit ready is ng, output 0. ? it is outputted about offset 0x31-0x32 of the status buffer. ? lun_ready_renew flag is cleared by the read of this command. read_stop _progress 4 0x6 d 0x00 0x0c 0x00 4 ? output the state of reproduction stop processing. ? when you send command accompanied by reproduction operation after stop command ,check the completion of stop processing with this command in advance. ? 1st byte outputs the state of stop processing. 1st byte=0x00: stop processing is completed. the command accompanied by reproduction operation can be executed. 1st byte=other than 0x00: stop processing or reproduction processing is running . ? 2nd -4th byte outputs other internal processing state. read_fr_statu s 4 0x6 d 0x03 0x00 0x00 2 ? output about a file read functional status. ? output about offset 0 x2f-0x30 of a status buffer. read_fr_size 4 0x6 d 0x03 0x01 0x00 4 ? output the file size of the file specified by the file read function. ? a unit is a byte. it outputs by little endian. read_fr_data 4 0x6 d 0x03 0x02 0x00 260 ? reads the data of the file specified by the file read function. ? up to 256 bytes of data can be read at one time. ? the leading 4 bytes are file offset. they are output in little endian format. downloaded from: http:///
54 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 read_sysmode 4 0x6 d 0x0a 0x00 0x00 1 ? output about the present system operation mode. read_error 4 0x6 d 0x0a 0x01 0x00 4 ? output about the contents of the present error. ? an internal error code original with this lsi is outputted. read_meminfo 4 0x6 d 0x0a 0x02 0x00 1 ? output about the present memory information. ? output about offset 0x37 of a status buffer. read_mount _error 4 0x6 d 0x0a 0x04 0x00 14 ? output the information on which stage of media mount went wrong when error occurs. ? 1st byte: usb enumeration state is outputted. ? 2nd byte: sd initialization state is outputted. ? 10th byte: file system analysis state is outputted. ? other bytes should be disregarded. ? see "12.4.15 process information when a media mount error " for details of content read_sd _status 4 0x6 d 0x0c 0x00 0x00 8 ? output the inside information of sd driver. ? the contents are original with this lsi. ? please use it by a set_sd_info command. read_fw_ver 4 0x6 d 0xff 0x00 0x00 4 ? output about a firmware version. downloaded from: http:///
55 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 table 13 . command enable/disable in each system operation mode command command enable/disable in each system operation mode command enable/disable in each status config player file read stop play search (device) search (file) analyze write read_buff read_status read_pset read_ptime read_lang read_pnum read_tnum read_fnum read_pfile_name read_pfol_name read_pfile_tag read_resume_info read_dev_free read_devdesc read_condesc read_inqiry read_lun read_lun_num read_set_lun read_lun_ready read_stop _progress read_fr_status read_fr_size read_fr_data read_sysmode read_error read_meminfo read_mount_error read_sd_status read_fw_ver =enab le =disable downloaded from: http:///
56 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 14 . system operation mode the lsi starts operation by setting up system operation mode after download of the program by ipl after a power supply and reset release. possible operation changes with each modes of operation. only the one mode can set up mode of operation with a command. the mode which is simultaneously different cannot be set up . a microcomputer sets up the change in system operation mode with a command. please be sure to perform the changes to each mode via config mode . the changes between player mode and fileread mode cannot be performed directly. the settlement of the following command is to do a re -setup because it is returned in the initial value when it passes through the config mode . repeat , random , set_ eq , set _next , set_reprand , set _tag , set _prm command chg _system_mode n=0x00 ; config mode it is in the state which changes after a power supply it is the mode which performs initi al setting of a system. please change to the mode of other operation after setting up with an initial-setting command. in this mode , even if it detects insertion of a memory , mount of a memory is not performed . the mount of a memory carried out behind each mode changes. n=0x01 ; player mode it is the mode which performs decoding play of the file in a memory. n=0x02 ; file read mode it is the mode which reading can perform about the specific fi le in a memory. a specific file can be deleted. 15 . resume information this lsi outputs the information for resume function , using read_resume_info command. table 14 . resume information register structure status offset the number of bytes name contents 0x38-0x61 42 resume information data this data shows the information on the file being played and on the play position . the data has a lsi-unique structure. the resume information data is data of 42 bytes. it outputs with a little endian. the above resume information has a lsi-unique structure and is used when executing resume play . therefore , you should use the data contents as they are without rewriting. the resume function is implemented by writing the resume information read by read_resume_info command to play_resume command . after writing to play_resume , the lsi automatically searches the resume. as for the action of the searches end , selectable from [playback is started in the time when read_resume_info command was forwarded ], [top (pause) in the time when read_resume_info command was forwarded ], [playback is started from the front of the tune when read_resume_info command was forwarded ], [ stop (pause) the front of the tune when read_resume_info command was forwarded ]. after reading read_resume_info command during file play , the lsi resumes the file from the time read_resume_info has been read . the data contents read by read_resume_info command cannot assure the operations when ex ecuting play_resume which has been rewritten due to the positional information within the memory . if the resume information does not match because of change of memory , the lsi starts searches front file of memory. downloaded from: http:///
57 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 16 . file name , fold er name , tag information a file name , a folder name , and tag information are outputted to a status register. the first 2 bytes to be output indicate file data id information. the target data is outputted from the 3rd byte . a file name , a folder name , and tag information status register structure are shown in table 15 . table 15 .file (folder , tag) information registers structure status offset the number of bytes name contents 0x38 1 data type the type of data is outputted . 0x00 ; text- nul (0x00) terminated character string 0x01 ; byte- unsigned 1 byte integer 0x39 1 encoding encoding of a character string is outputted . 0x00 ; iso8859-1(latin1) 0x01 : utf- 16 (with bom) 0x02 : utf-16be 0x03 : utf-8 0x49 : utf- 16le when a data type is except 0x00: te xt , data length (byte unit) is outputted . 0x3a-0xb9 128 file name (folder name , tag) a file name ( or a folder name , tag) is outputted by left fitting. up to 128 bytes can be output . if the data is less than 128 bytes, it terminates with 0x00. the character code information on tag information is outputted to a status register . character code information status register structure is shown in table 16. table 16 . character code information registers structure langh offset=0x11 langl offset=0x10 language code 0x00 0x00 id3v1 tag or iso8859-1(id3v2 tag) 0x00 0x01 utf- 16 (id3v2 tag) 0x00 0x02 utf-16be (id3v2 tag 0x00 0x03 utf-8 (id3v2 tag or aac tag itunes meta-data) 0x00 0x49 utf- 16le (wma tag) 17 . file data read it is possible to read the contents of the specified file in a memory . file name is specified by the full path (within 256 bytes) including a file name and an extension . a full path including a file name and an extension supports to 16 classes within 256 bytes . t he above-operation can be performed when system operation mode is file read mode. downloaded from: http:///
58 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 18 . irpto interruption terminal to microcomput er when some status changes , this lsi notifies interruption to master microcomputer by irpto terminal. when signal is h , it is shown that interrupt occurs. please connect irpto terminal to the interruption port of level detection. following table shows irpto signal out put condition for each system mode. state interruption contents player mode meminfo = 0x3 an interrupt occurs when status register meminfo=0x03 (offset=0x37 , [ 7:4 ] ).see 6.4. 14 . selected memory information for content. clear conditions ; interruption is cleared by memory disconnection. file read mode frdready an interrupt occurs when a specified file is searched and read-out is ready. clear conditions ; interruption is cleared by data are read (block unit). 19 . previous command processing situation t he previous command processing situation is outputted as status register status6 (offset=0x05) precomstat . bit0 of status6(offset=0x05) and bit2 of status2 (offset=0x01) is the same value . when bit2 of status2 set to "0", the previous command is normally processed . when bit2 of status2 set to "1", the previous command is not processed . the following shows the value descriptions. value name cause of being unprocessed 0x01 unclassified non classification error 0x03 unknown cmd undefined command 0x05 sea rch searching now 0x07 invalid arg invalid parameter is detected. 0x09 wrong mode invalid command in the current system operation mode 0x0b not ready initialization is not completed. 0x0f not implemented the function is not mounted. 0x15 device error device error 20 . selected memory information the kind and information on a device which are chosen now are outputted by a read_meminfo command . an output value is cleared at the memory disconnection or chg _dev command reception , and is updated at the completion of mount operation . the details of an output value are shown below . value[7:4] contents 0x0 mounted usb device (playable device) 0x1 no -mounted usb device (file system un -support , etc.) 0x2 usb low speed device 0x3 usb device with two or more device configration 0x4 the usb device and sd device which cannot be recognized (usb enumeration failure etc.) 0x5 meminfo is undecided. 0x6 - 0x7 sd card 0x8-0xf it means that there is hub , when bit7 is h. downloaded from: http:///
59 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 21 . process information when a me dia mount error when media mount failure occurs, read_mount_error command o utput the information on the stage of media mount operation. after being set to error=1 , the detailed information about in which process the error occurred can be read with this co mmand. for example , when error=1 and 1st byte=0x08 or 0x09 , it turns out that mount error is caused by device response error for test unit ready or request sense. the details of an output value are shown below . 1st byte (offset=0) of a read value outputs the process state of usb mount operation. a read value corresponds to the processing which went wrong. a read value is cleared at the start of a usb mount operation. a read value is updated irrespective of the success or failure of mount operation at the completion of mount operation. read value process state read value process state 0x00 before a start of operation 0x10 get_devstatus 0x01 device_discriptor acquisition 0x11 sector read command send 0x02 set _address 0x12 sector read command receive 0x03 config_descriptor acquisition 0x13 sector read status receive 0x04 end point connect 0x14 - 0x05 set _configration 0x15 - 0x06 get max lun 0x16 - 0x07 clear_feature 0x17 not-supported device subclass 0x08 inquiry 0x18 only hub is connected 0x09 test unit ready 0x19 low device is detected 0x0a request sense - - 0x0b read_capacity - - 0x0c clear_port_feature - - 0x0d get_port_status - - 0x0e set _port_feature - - 0x0f hub _descriptor acquisition - - 2nd byte (offset=1) of a read value outputs the process state of sd initialization. bit corresponding to the succeeded process is set to 1. a read value is cleared at the start of a sd mount operation. a read value is updated one by one during mount , irrespective of the success or failure of mount operation. update is stopped at the completion of mount operation a read value is 0x00 before a start of operation. 10th byte (offset=9) of a read value outputs the process state of fat file system analysis. a read value corresponds to the processing which went wrong. a read value is updated one by one during mount , irrespective of the success or failure of mount operation. update is stopped at the completion of mount operation read value process state 0x00 before a start of operation 0x01 mbr read 0x02 mbr analysis 0x03 bpb analysis 0x04 fat table check bit process state 0 cmd0 response 1 cmd8 response 2 cmd55 response 3 cmd41 response 4 cmd58 response 5 cmd1 response downloaded from: http:///
60 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 22 . patch code download for play ability improvement to peculiar usb memory and sd card , this lsi supports to download a patch cord from a master microcomputer. in config mode , a patch is downloadable from a master microcomputer via i 2 c. the whole patch image size sent into bu94502cxxx must be smaller than 8440 bytes. please divide a patch image into packets within 504 byte s , send by set _patch_code command. after downloading all patch image packets , validate the patch image by set _patch_crc command. ? generator polynomial uses crc -citt (x^ 16 + x^12+x ^ 5+1) . ? initial value is 0xffff . ? output xor is 0x0000 . ? a bit feed is the right feed. figure 32 . concept of patch code download 23 . watch dog timer the lsi incorporates watch dog timer , which monitors the system hang- up and resets whenever it occurs. after resetting hang- up . c an disable wdt using dis_wdt command. once wdt is disabled , it cannot be enabled until reset is input. when wdt , in the valid status , detects a hang- up within the lsi regardless of ex ternal situations ( on the microcomputer) , the lsi resets the system internally. to monitor whether the lsi is reset by wdt from the master microcomputer (external) , use set _wdt command to write h to status wdt_rflg and monitor this status. after reset , this status is read as l. this helps you judge that wdt has reset the lsi by reading out l when reading the status regularly after w riting h using set_wdt command . patch image packet #1 patch image packet #n crc#1 ? ? ? crc of whole set_patch_code ? ? ? check whole crc, patch image packet #2 patch image packet #3 ? ? ? patch image crc#2 crc#3 crc#n set_patch_code set_patch_code set_patch_code set_patch_code whole patch image save to instruction ram save to instruction ram save to instruction ram save to instruction ram validate patch image this lsi downloaded from: http:///
61 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 notes for use (1)power on reset please keep the terminal resetx at the low level when t he power supply starts . please make the terminal resetx high level after 100us after 3. 3v system power supply and the oscillation of the system clock is steady . moreover , please make the terminal resetx low level during 100us or more when resetting it while operating. (2) about compatibility in usb memory device and sd memory card according to the file structure and communication speed of an usb memory , sd memory card , this lsi might not play back correctly. (3) about turning on the power supply current rush might flow momentarily by the order of turning on the power supply and the delay in ic with two or more power supplies , and note the capacity of the power supply coupling , the power supply , and width and drawing the gnd pattern wiring. (4) about absolute maximum rating when the absolute maximum rating such as the applied voltage and the ranges of the operating temperature is exceeded , lsi might be destroyed . please apply neither voltage nor the temperature that exce eds the absolute maximum rating . pl ease execute physical measures for safety such as fuse when it is thought to exceed the absolute maximum rating , and examine it so that the condition to exceed the absolute maximum rating is not applied to lsi. (5) about gnd voltage in any state of oper ation must be the lowest voltage about the voltage of the terminal gnd . please actually confirm the voltage of each terminal is not a voltage that is lower than the terminal gnd including excessive phenome non. (6) about design of overheating malfunction preventive circuit please design overheating malfunction preventive circuit w ith an enough margin in consideration of a permissible loss in the state of using actually. use a thermal design that allows for a sufficient margin in light of the power dissipati on ( pd ) in actual operating conditions . vqfn040v6060 package(bu94502cmuv)exposes its frame of the backside of package . note that this part is assumed to use after providing heat dissipation treatment to improve heat dissipation efficiency . t ry to occupy as wide as possible with heat dissipation pattern not only on the board surface but also the backside. (7) about the short between terminals and the mounting by mistake please note the direction and the gap of position of lsi enough about lsi when you mount on the substrate . lsi might be destroyed when mounting by mistake and energizing . moreover , lsi might be destroyed when short-circuited by entering of the foreign substances between the terminal and gnd , between terminals , between the terminal and the power supply of lsi. (8) about operation in strong electromagnetic field use in strong electromagnetic field has the possibility of malfunctioning and evaluate it enough , please. (9) playing time of mp3 file the playing time when it can be acquired at the time of playing the mp3 file, may shift when fast forward playin g , rewinding playing , and vbr playing . (10) about wma windows media audio is the music compression technology which microsoft corp . developed . windows media is the registered trademark of u.s . microsoft corporation in the u.s., and other countries. (11) about i 2 c format i/f although this lsi has adopted the i 2 c format , the level shifter circuit is not built in . for this reason , level shifter is needed for connection with the device besides the range of operating power supply voltage of this lsi. status of this document the japanese version of this document is the formal specification . a customer may use t his translation version only for a reference. to help reading the formal version . if there are any differences in translation version of this document , formal version takes priority. downloaded from: http:///
62 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 information about ordering part number b u 9 4 5 0 2 c x x x - x x part number bu94502c package muv : vqfn040v6060 ks2 : sqfp-t52 packaging and forming specification e2 : reel-formed emboss taping none : tray , tube vqfn040v6060 is provided in reel-formed emboss taping sqfp-t52 is provided in a tray . downloaded from: http:///
63 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 physical dimension, tape and reel information package name vqfn040v6060 downloaded from: http:///
64 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 physical dimension, tape and reel information package name sqfp-t52 downloaded from: http:///
65 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 mark name image part number part number marking ordering part number bu94502cmuv bu94502 cmuv bu94502cmuv- e2 bu94502c ks2 u94502c ks2 bu94502c ks2 sqfp-t52 (top view) vqfn040v6060 (top view) part number marking lot number 1pin mark bu 94502 cmuv part number marking lot number 1pin mark u94502cks2 downloaded from: http:///
66 / 66 bu94502cxxx series tsz02201-0v1v0e600170-1-2 ? 20 16 rohm co., ltd. all rights reserved. 2016.01.05 rev.001 www.rohm.com tsz22111 ? 15 ? 001 revision history date revision changes 05 .jan.2016 001 newly created. downloaded from: http:///
datasheet d a t a s h e e t notice-pga-e rev.00 2 ? 2015 rohm co., ltd. all rights reserved. notice precaution on using rohm products 1. our products are designed and manufac tured for application in ordinary elec tronic equipments (such as av equipment, oa equipment, telecommunication equipment, home electroni c appliances, amusement equipment, etc.). if you intend to use our products in devices requiring ex tremely high reliability (such as medical equipment (note 1) , transport equipment, traffic equipment, aircraft/spacecra ft, nuclear power controllers, fuel c ontrollers, car equipment including car accessories, safety devices, etc.) and whose malfunction or failure may cause loss of human life, bodily injury or serious damage to property (?specific applications?), please consult with the rohm sale s representative in advance. unless otherwise agreed in writing by rohm in advance, rohm shall not be in any way responsible or liable for any damages, expenses or losses incurred by you or third parties arising from the use of any ro hm?s products for specific applications. (note1) medical equipment classification of the specific applications japan usa eu china class class class b class class ? class 2. rohm designs and manufactures its products subject to strict quality control system. however, semiconductor products can fail or malfunction at a certain rate. please be sure to implement, at your own responsibilities, adequate safety measures including but not limited to fail-safe desi gn against the physical injury, damage to any property, which a failure or malfunction of our products may cause. the following are examples of safety measures: [a] installation of protection circuits or other protective devices to improve system safety [b] installation of redundant circuits to reduce the impact of single or multiple circuit failure 3. our products are designed and manufactured for use under standard conditions and not under any special or extraordinary environments or conditio ns, as exemplified below. accordin gly, rohm shall not be in any way responsible or liable for any damages, expenses or losses arising from the use of an y rohm?s products under any special or extraordinary environments or conditions. if you intend to use our products under any special or extraordinary environments or conditions (as exemplified below), your independent verification and confirmation of product performance, reliability, etc, prior to use, must be necessary: [a] use of our products in any types of liquid, incl uding water, oils, chemicals, and organic solvents [b] use of our products outdoors or in places where the products are exposed to direct sunlight or dust [c] use of our products in places where the products ar e exposed to sea wind or corrosive gases, including cl 2 , h 2 s, nh 3 , so 2 , and no 2 [d] use of our products in places where the products are exposed to static electricity or electromagnetic waves [e] use of our products in proximity to heat-producing components, plastic cords, or other flammable items [f] sealing or coating our products with resin or other coating materials [g] use of our products without cleaning residue of flux (ev en if you use no-clean type fluxes, cleaning residue of flux is recommended); or washing our products by using water or water-soluble cleaning agents for cleaning residue after soldering [h] use of the products in places subject to dew condensation 4. the products are not subjec t to radiation-proof design. 5. please verify and confirm characteristics of the final or mounted products in using the products. 6. in particular, if a transient load (a large amount of load applied in a short per iod of time, such as pulse. is applied, confirmation of performance characteristics after on-boar d mounting is strongly recomm ended. avoid applying power exceeding normal rated power; exceeding the power rating under steady-state loading c ondition may negatively affect product performance and reliability. 7. de-rate power dissipation depending on ambient temperature. when used in sealed area, c onfirm that it is the use in the range that does not exceed t he maximum junction temperature. 8. confirm that operation temperat ure is within the specified range described in the product specification. 9. rohm shall not be in any way responsible or liable for fa ilure induced under deviant condi tion from what is defined in this document. precaution for mounting / circuit board design 1. when a highly active halogenous (chlori ne, bromine, etc.) flux is used, the resi due of flux may negatively affect product performance and reliability. 2. in principle, the reflow soldering method must be used on a surface-mount products, the flow soldering method must be used on a through hole mount products. if the flow sol dering method is preferred on a surface-mount products, please consult with the rohm representative in advance. for details, please refer to rohm mounting specification downloaded from: http:///
datasheet d a t a s h e e t notice-pga-e rev.00 2 ? 2015 rohm co., ltd. all rights reserved. precautions regarding application examples and external circuits 1. if change is made to the constant of an external circuit, pl ease allow a sufficient margin considering variations of the characteristics of the products and external components, including transient characteri stics, as well as static characteristics. 2. you agree that application notes, re ference designs, and associated data and in formation contained in this document are presented only as guidance for products use. theref ore, in case you use such information, you are solely responsible for it and you must exercise your own indepen dent verification and judgment in the use of such information contained in this document. rohm shall not be in any way responsible or liable for any damages, expenses or losses incurred by you or third parties arising from the use of such information. precaution for electrostatic this product is electrostatic sensitive product, which may be damaged due to electrostatic discharge. please take proper caution in your manufacturing process and storage so that voltage exceeding t he products maximum rating will not be applied to products. please take special care under dry condit ion (e.g. grounding of human body / equipment / solder iron, isolation from charged objects, se tting of ionizer, friction prevention and temperature / humidity control). precaution for storage / transportation 1. product performance and soldered connections may deteriora te if the products are stor ed in the places where: [a] the products are exposed to sea winds or corros ive gases, including cl2, h2s, nh3, so2, and no2 [b] the temperature or humidity exceeds those recommended by rohm [c] the products are exposed to di rect sunshine or condensation [d] the products are exposed to high electrostatic 2. even under rohm recommended storage c ondition, solderability of products out of recommended storage time period may be degraded. it is strongly recommended to confirm sol derability before using products of which storage time is exceeding the recommended storage time period. 3. store / transport cartons in the co rrect direction, which is indicated on a carton with a symbol. otherwise bent leads may occur due to excessive stress applied when dropping of a carton. 4. use products within the specified time after opening a humidity barrier bag. baking is required before using products of which storage time is exceeding the recommended storage time period. precaution for product label qr code printed on rohm products label is for rohm?s internal use only. precaution for disposition when disposing products please dispose them proper ly using an authorized industry waste company. precaution for foreign exchange and foreign trade act since concerned goods might be fallen under listed items of export control prescribed by foreign exchange and foreign trade act, please consult with rohm in case of export. precaution regarding intellectual property rights 1. all information and data including but not limited to application example contained in this document is for reference only. rohm does not warrant that foregoi ng information or data will not infringe any intellectual property rights or any other rights of any third party regarding such information or data. 2. rohm shall not have any obligations where the claims, actions or demands arising from the co mbination of the products with other articles such as components, circuits, systems or external equipment (including software). 3. no license, expressly or implied, is granted hereby under any intellectual property rights or other rights of rohm or any third parties with respect to the products or the informati on contained in this document. pr ovided, however, that rohm will not assert its intellectual property rights or other rights against you or your customers to the extent necessary to manufacture or sell products containing the produc ts, subject to the terms and conditions herein. other precaution 1. this document may not be reprinted or reproduced, in whol e or in part, without prior written consent of rohm. 2. the products may not be disassembled, converted, modified, reproduced or otherwise changed without prior written consent of rohm. 3. in no event shall you use in any wa y whatsoever the products and the related technical information contained in the products or this document for any military purposes, incl uding but not limited to, the development of mass-destruction weapons. 4. the proper names of companies or products described in this document are trademarks or registered trademarks of rohm, its affiliated companies or third parties. downloaded from: http:///
datasheet datasheet notice ? we rev.001 ? 2016 rohm co., ltd. all rights reserved. general precaution 1. before you use our pro ducts, you are requested to care fully read this document and fully understand its contents. rohm shall n ot be in an y way responsible or liabl e for fa ilure, malfunction or acci dent arising from the use of a ny rohms products against warning, caution or note contained in this document. 2. all information contained in this docume nt is current as of the issuing date and subj ec t to change without any prior notice. before purchasing or using rohms products, please confirm the la test information with a rohm sale s representative. 3. the information contained in this doc ument is provi ded on an as is basis and rohm does not warrant that all information contained in this document is accurate an d/or error-free. rohm shall not be in an y way responsible or liable for an y damages, expenses or losses incurred b y you or third parties resulting from inaccur acy or errors of or concerning such information. downloaded from: http:///